aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/sandcrawler/ia.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py
index 08b92e2..e945474 100644
--- a/python/sandcrawler/ia.py
+++ b/python/sandcrawler/ia.py
@@ -173,6 +173,8 @@ class SavePageNowClient:
except requests.exceptions.RetryError as re:
# could have been any number of issues...
raise SavePageNowError(str(re))
+ except requests.exceptions.TooManyRedirects as tmr:
+ raise SavePageNowRemoteError(str(tmr))
if resp.status_code != 200 and resp.headers.get('X-Archive-Wayback-Runtime-Error'):
# looks like a weird remote error; would not expect a CDX reply so bailing here