mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[downloader/http] Properly handle missing message in SSLError (closes #26646)
This commit is contained in:
parent
0837992a22
commit
c5764b3f89
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ def retry(e):
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue