Browse Source

fixup! try to handle connection interrupts in net.download

keep-around/e977c9e07f177e8bc2b51265de1bc93475397f61
parazyd 6 years ago
parent
commit
3e8dae8494
Signed by untrusted user: parazyd GPG Key ID: F0CB28FCF78637DE
  1. 2
      lib/net.py

2
lib/net.py

@ -23,7 +23,7 @@ def download(uris):
r = requests.get(url, stream=True)
except requests.exceptions.ConnectionError:
warn("Caught exception: Connection reset. Retrying.")
download(uris)
return download(uris)
if r.status_code == 404:
warn("failed: 404 not found!")

Loading…
Cancel
Save