Skip to content
Snippets Groups Projects
Unverified Commit c5764b3f authored by Sergey M․'s avatar Sergey M․
Browse files

[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
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment