]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[http] PEP8 (#4831)
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 2 Feb 2015 11:05:39 +0000 (12:05 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 2 Feb 2015 11:05:39 +0000 (12:05 +0100)
youtube_dl/downloader/http.py

index 9b023c5c17e4bd29c7d4d82ce8edbfdf48522f8a..49170cf9d47634602efe7832b235e4a751e25817 100644 (file)
@@ -102,11 +102,11 @@ class HttpFD(FileDownloader):
                             resume_len = 0
                             open_mode = 'wb'
                             break
-
             except SocketError as e:
                 if e.errno != errno.ECONNRESET:
-                    raise # Not error we are looking for
-                pass
+                    # Connection reset is no problem, just retry
+                    raise
+
             # Retry
             count += 1
             if count <= retries: