Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
youtube-dl
Commits
c5764b3f
Unverified
Commit
c5764b3f
authored
Sep 22, 2020
by
Sergey M․
Browse files
[downloader/http] Properly handle missing message in SSLError (closes #26646)
parent
0837992a
Changes
1
Hide whitespace changes
Inline
Side-by-side
youtube_dl/downloader/http.py
View file @
c5764b3f
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment