aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/sandcrawler/ingest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/sandcrawler/ingest.py b/python/sandcrawler/ingest.py
index e2ef47a..7211ee0 100644
--- a/python/sandcrawler/ingest.py
+++ b/python/sandcrawler/ingest.py
@@ -299,8 +299,9 @@ class IngestFileWorker(SandcrawlerWorker):
print("transfer encoding not stripped: {}".format(resource.cdx.mimetype), file=sys.stderr)
try:
inner_body = gzip.decompress(resource.body)
- except EOFError:
+ except Exception as e:
result['status'] = 'bad-gzip-encoding'
+ result['error_message'] = str(e)
return result
if not inner_body:
result['status'] = 'null-body'