amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

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:
Mlib/net.py | 2+-
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!")