diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/sandcrawler/ia.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/sandcrawler/ia.py b/python/sandcrawler/ia.py index 267ecdc..99e92be 100644 --- a/python/sandcrawler/ia.py +++ b/python/sandcrawler/ia.py @@ -467,8 +467,11 @@ class WaybackClient: ) except requests.exceptions.TooManyRedirects: raise WaybackError("redirect loop (wayback replay fetch)") + except requests.exceptions.ChunkedEncodingError: + raise WaybackError("ChunkedEncodingError (wayback replay fetch)") except UnicodeDecodeError: raise WaybackError("UnicodeDecodeError in replay request (can mean nasty redirect URL): {}".format(url)) + try: resp.raise_for_status() except Exception as e: |