Private GIT

Skip to content
Snippets Groups Projects
Commit d2b024d3 authored by Fernando's avatar Fernando Committed by fernandog
Browse files

Warn about SSL error instead of raise error

parent 5e1cdeaa
Branches ssl_warning
No related tags found
No related merge requests found
...@@ -189,8 +189,9 @@ class Logger(object): # pylint: disable=too-many-instance-attributes ...@@ -189,8 +189,9 @@ class Logger(object): # pylint: disable=too-many-instance-attributes
message = '%s :: %s' % (cur_thread, msg) message = '%s :: %s' % (cur_thread, msg)
# Change the SSL error to a warning with a link to information about how to fix it. # Change the SSL error to a warning with a link to information about how to fix it.
# Check for u'error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)'
check = re.sub(r'error \[Errno 1\] _ssl.c:\d{3}: error:\d{8}:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error', 'See: http://git.io/vuU5V', message) check = re.sub(r'error \[Errno 1\] _ssl.c:\d{3}: error:\d{8}:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error', 'See: http://git.io/vuU5V', message)
if check != message: if check != message or 'sslv3 alert handshake failure' in message:
message = check message = check
level = WARNING level = WARNING
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment