From 32ae240fdb7b6439f094208c248cc81fcd3bf51d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 27 Nov 2018 17:29:55 -0800 Subject: fix error var typo --- python/kafka_grobid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/kafka_grobid.py b/python/kafka_grobid.py index 75ad52d..2fe35ac 100755 --- a/python/kafka_grobid.py +++ b/python/kafka_grobid.py @@ -117,7 +117,7 @@ class KafkaGrobidWorker: reason="failed to load file contents from wayback/petabox (EOFError: {})".format(eofe)) except TypeError as te: return None, dict(status="error", - reason="failed to load file contents from wayback/petabox (TypeError: {}; likely a bug in wayback python code)".format(eofe)) + reason="failed to load file contents from wayback/petabox (TypeError: {}; likely a bug in wayback python code)".format(te)) # Note: could consider a generic "except Exception" here, as we get so # many petabox errors. Do want jobs to fail loud and clear when the # whole cluster is down though. -- cgit v1.2.3