aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/persist.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2019-12-27 18:05:36 -0800
committerBryan Newbold <bnewbold@archive.org>2020-01-02 18:12:58 -0800
commit2a7a51e9ee154170ad6d48b36281f6ee702da582 (patch)
tree1a9d6d1ed244ca38d5722e0dc346dc05df729445 /python/sandcrawler/persist.py
parentbe8c5e0c5d7a97cfd72973ace206aa39a1c58052 (diff)
downloadsandcrawler-2a7a51e9ee154170ad6d48b36281f6ee702da582.tar.gz
sandcrawler-2a7a51e9ee154170ad6d48b36281f6ee702da582.zip
fix dict typo
Diffstat (limited to 'python/sandcrawler/persist.py')
-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