commit 3e8dae84947870efda45b72c7cbae6dbebf1bf14
parent fbaade5e33a6ddddc54a1569dac8f209658185b1
Author: parazyd <parazyd@dyne.org>
Date: Wed, 28 Jun 2017 16:19:53 +0200
fixup! try to handle connection interrupts in net.download
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/net.py b/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!")