1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-24 17:25:52 +01:00

[http] PEP8 (#4831)

This commit is contained in:
Philipp Hagemeister 2015-02-02 12:05:39 +01:00
parent 6789defea9
commit 1283204917

View 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: