commit: 12832049170e8b3bd457706f49e8e09de12a368c
parent 6789defea9b1fc7ff631e9da8a281504167ced10
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Mon, 2 Feb 2015 12:05:39 +0100
[http] PEP8 (#4831)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
@@ -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: