Browse Source

revert handling of requests.exceptions.ReadTimeout

needs investigation because the thread gets stuck upon handling
keep-around/e977c9e07f177e8bc2b51265de1bc93475397f61
parazyd 6 years ago
parent
commit
f82aba2978
Signed by untrusted user: parazyd GPG Key ID: F0CB28FCF78637DE
  1. 4
      lib/net.py

4
lib/net.py

@ -21,8 +21,8 @@ def download(uris):
try:
r = requests.get(url, stream=True, timeout=20)
except (requests.exceptions.ConnectionError,
requests.exceptions.ReadTimeout) as e:
# TODO: investigate also requests.exceptions.ReadTimeout
except requests.exceptions.ConnectionError as e:
warn('Caught exception: "%s". Retrying...' % e)
return download(uris)

Loading…
Cancel
Save