X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=youtube-dl.git;a=blobdiff_plain;f=youtube_dl%2Fdownloader%2Fhttp.py;h=96379caf1ec2f462c7aadfaa02589778ba07e548;hp=04da14d91cff55b2708366662dabeb1c827515af;hb=c5764b3f89b66e0148a186490f522ae7c259a55e;hpb=0837992a226690d514eb01b7460bed4a33fddb30 diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py index 04da14d91..96379caf1 100644 --- a/youtube_dl/downloader/http.py +++ b/youtube_dl/downloader/http.py @@ -241,7 +241,7 @@ class HttpFD(FileDownloader): except socket.error as e: # SSLError on python 2 (inherits socket.error) may have # no errno set but this error message - if e.errno in (errno.ECONNRESET, errno.ETIMEDOUT) or getattr(e, 'message') == 'The read operation timed out': + if e.errno in (errno.ECONNRESET, errno.ETIMEDOUT) or getattr(e, 'message', None) == 'The read operation timed out': retry(e) raise