Browse Source

[http] PEP8 (#4831)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
1283204917
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      youtube_dl/downloader/http.py

+ 3
- 3
youtube_dl/downloader/http.py View File

@ -102,11 +102,11 @@ class HttpFD(FileDownloader):
resume_len = 0 resume_len = 0
open_mode = 'wb' open_mode = 'wb'
break break
except SocketError as e: except SocketError as e:
if e.errno != errno.ECONNRESET: if e.errno != errno.ECONNRESET:
raise # Not error we are looking for
pass
# Connection reset is no problem, just retry
raise
# Retry # Retry
count += 1 count += 1
if count <= retries: if count <= retries:


Loading…
Cancel
Save