projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0837992
)
[downloader/http] Properly handle missing message in SSLError (closes #26646)
author
Sergey M․
<dstftw@gmail.com>
Tue, 22 Sep 2020 00:01:59 +0000
(07:01 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 22 Sep 2020 00:01:59 +0000
(07:01 +0700)
youtube_dl/downloader/http.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/http.py
b/youtube_dl/downloader/http.py
index 04da14d91cff55b2708366662dabeb1c827515af..96379caf1ec2f462c7aadfaa02589778ba07e548 100644
(file)
--- 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