aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-11-27 17:29:55 -0800
committerBryan Newbold <bnewbold@archive.org>2018-11-27 17:29:55 -0800
commit32ae240fdb7b6439f094208c248cc81fcd3bf51d (patch)
tree388123d5d48329d4f6da40c3ae8faa66c5ae9629
parent8670ba255643895f4b85ca7b17821832cc669784 (diff)
downloadsandcrawler-32ae240fdb7b6439f094208c248cc81fcd3bf51d.tar.gz
sandcrawler-32ae240fdb7b6439f094208c248cc81fcd3bf51d.zip
fix error var typo
-rwxr-xr-xpython/kafka_grobid.py2
1 files changed, 1 insertions, 1 deletions
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.