projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6789def
)
[http] PEP8 (#4831)
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 2 Feb 2015 11:05:39 +0000
(12:05 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 2 Feb 2015 11:05:39 +0000
(12:05 +0100)
youtube_dl/downloader/http.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/http.py
b/youtube_dl/downloader/http.py
index 9b023c5c17e4bd29c7d4d82ce8edbfdf48522f8a..49170cf9d47634602efe7832b235e4a751e25817 100644
(file)
--- 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: