diff options
| author | Bryan Newbold <bnewbold@archive.org> | 2020-04-13 18:41:14 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@archive.org> | 2020-04-13 18:41:14 -0700 | 
| commit | be805be033168eb6cba55b76f008bf813e6c169c (patch) | |
| tree | af9a3f1d92e6f655c87c0f213aa87385d566d6bb | |
| parent | b123a324d9ac5faad3167052710e71edaadf1bfe (diff) | |
| download | fatcat-covid19-be805be033168eb6cba55b76f008bf813e6c169c.tar.gz fatcat-covid19-be805be033168eb6cba55b76f008bf813e6c169c.zip  | |
deliver_file2disk: handle another wayback error condition
| -rwxr-xr-x | bin/deliver_file2disk.py | 2 | 
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:  | 
