aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/sandcrawler/ingest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/sandcrawler/ingest.py b/python/sandcrawler/ingest.py
index 43aea1b..4938e12 100644
--- a/python/sandcrawler/ingest.py
+++ b/python/sandcrawler/ingest.py
@@ -116,6 +116,10 @@ class IngestFileWorker(SandcrawlerWorker):
response['status'] = 'cdx-error'
response['error_message'] = str(e)
return response
+ except WaybackError as e:
+ response['status'] = 'wayback-error'
+ response['error_message'] = str(e)
+ return response
sys.stderr.write("CDX hit: {}\n".format(cdx_dict))
response['cdx'] = cdx_dict