URI: 
       ttry to handle connection interrupts in net.download - amprolla - devuan's apt repo merger
  HTML git clone git://parazyd.org/amprolla.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 5c55549a68fec31bd673487b65cd0cb4ca0ccfd6
   DIR parent ae0f2f3219c8d65dbf826b49845ed37534fd1443
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Wed, 28 Jun 2017 10:23:38 +0200
       
       ttry to handle connection interrupts in net.download
       
       Diffstat:
         M lib/net.py                          |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/net.py b/lib/net.py
       t@@ -19,7 +19,11 @@ def download(uris):
            path = uris[1]
            info("dl: %s" % url)
        
       -    r = requests.get(url, stream=True)
       +    try:
       +        r = requests.get(url, stream=True)
       +    except requests.exceptions.ConnectionError:
       +        warn("Caught exception: Connection reset. Retrying.")
       +        download(uris)
        
            if r.status_code == 404:
                warn("failed: 404 not found!")