Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
youtube-dl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ytdl
youtube-dl
Commits
c5764b3f
Unverified
Commit
c5764b3f
authored
4 years ago
by
Sergey M․
Browse files
Options
Downloads
Patches
Plain Diff
[downloader/http] Properly handle missing message in SSLError (closes #26646)
parent
0837992a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
youtube_dl/downloader/http.py
+1
-1
1 addition, 1 deletion
youtube_dl/downloader/http.py
with
1 addition
and
1 deletion
youtube_dl/downloader/http.py
+
1
−
1
View file @
c5764b3f
...
@@ -241,7 +241,7 @@ class HttpFD(FileDownloader):
...
@@ -241,7 +241,7 @@ class HttpFD(FileDownloader):
except
socket
.
error
as
e
:
except
socket
.
error
as
e
:
# SSLError on python 2 (inherits socket.error) may have
# SSLError on python 2 (inherits socket.error) may have
# no errno set but this error message
# 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
)
retry
(
e
)
raise
raise
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment