tfixup! try to handle connection interrupts in net.download - amprolla - devuan's apt repo merger (HTM) git clone git://parazyd.org/amprolla.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 3e8dae84947870efda45b72c7cbae6dbebf1bf14 (DIR) parent fbaade5e33a6ddddc54a1569dac8f209658185b1 (HTM) Author: parazyd <parazyd@dyne.org> Date: Wed, 28 Jun 2017 16:19:53 +0200 fixup! try to handle connection interrupts in net.download Diffstat: M lib/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/lib/net.py b/lib/net.py t@@ -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!")