From 2a7a51e9ee154170ad6d48b36281f6ee702da582 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 27 Dec 2019 18:05:36 -0800 Subject: fix dict typo --- python/sandcrawler/persist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3