aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/sandcrawler/persist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/persist.py b/python/sandcrawler/persist.py
index 345e01a..45df8c7 100644
--- a/python/sandcrawler/persist.py
+++ b/python/sandcrawler/persist.py
@@ -231,7 +231,7 @@ class PersistGrobidWorker(SandcrawlerWorker):
if r['status_code'] != 200 or not r.get('tei_xml'):
self.counts['s3-skip-status'] += 1
if r.get('error_msg'):
- r['metadata']['error_msg'] = r['error_msg'][:500]
+ r['metadata'] = {'error_msg': r['error_msg'][:500]}
continue
assert len(r['key']) == 40