aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-13 18:41:14 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-13 18:41:14 -0700
commitbe805be033168eb6cba55b76f008bf813e6c169c (patch)
treeaf9a3f1d92e6f655c87c0f213aa87385d566d6bb /bin
parentb123a324d9ac5faad3167052710e71edaadf1bfe (diff)
downloadfatcat-covid19-be805be033168eb6cba55b76f008bf813e6c169c.tar.gz
fatcat-covid19-be805be033168eb6cba55b76f008bf813e6c169c.zip
deliver_file2disk: handle another wayback error condition
Diffstat (limited to 'bin')
-rwxr-xr-xbin/deliver_file2disk.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/deliver_file2disk.py b/bin/deliver_file2disk.py
index e5f13c0..dd9ab30 100755
--- a/bin/deliver_file2disk.py
+++ b/bin/deliver_file2disk.py
@@ -149,6 +149,8 @@ class DeliverFatcatDisk:
return ('wayback-error', None)
except requests.exceptions.TooManyRedirects:
return ('too-many-redirects', None)
+ except requests.exceptions.ChunkedEncodingError:
+ return ('chunked-encoding', None)
if resp.status_code != 200:
return ('fetch:{}'.format(resp.status_code), None)
else: