aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/http.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-02 12:05:39 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-02 12:05:39 +0100
commit12832049170e8b3bd457706f49e8e09de12a368c (patch)
treea87f446d744c4593a08cae37bb158d9c641661ca /youtube_dl/downloader/http.py
parent6789defea9b1fc7ff631e9da8a281504167ced10 (diff)
[http] PEP8 (#4831)
Diffstat (limited to 'youtube_dl/downloader/http.py')
-rw-r--r--youtube_dl/downloader/http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
index 9b023c5c1..49170cf9d 100644
--- 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: