Skip to content

A feature-rich command-line audio/video downloader

[http] PEP8 (#4831)

Philipp Hagemeister12832049170e
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
index 9b023c5c17..49170cf9d4 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: