diff options
author | Bryan Newbold <bnewbold@archive.org> | 2019-12-27 18:05:36 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-01-02 18:12:58 -0800 |
commit | 2a7a51e9ee154170ad6d48b36281f6ee702da582 (patch) | |
tree | 1a9d6d1ed244ca38d5722e0dc346dc05df729445 /python | |
parent | be8c5e0c5d7a97cfd72973ace206aa39a1c58052 (diff) | |
download | sandcrawler-2a7a51e9ee154170ad6d48b36281f6ee702da582.tar.gz sandcrawler-2a7a51e9ee154170ad6d48b36281f6ee702da582.zip |
fix dict typo
Diffstat (limited to 'python')
-rw-r--r-- | python/sandcrawler/persist.py | 2 |
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 |