Private GIT

Skip to content
Snippets Groups Projects
Commit ef3bad90 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

Merge pull request #1880 from miigotu/skip-ssl-reports

Replace SSL Error with a url with information. Disable issue submission of the infamous SSL errors.
parents 02e80c65 4caed7d5
No related branches found
No related tags found
No related merge requests found
...@@ -135,6 +135,8 @@ class Logger(object): ...@@ -135,6 +135,8 @@ class Logger(object):
# pass exception information if debugging enabled # pass exception information if debugging enabled
if level == ERROR: if level == ERROR:
#Replace the SSL error with a link to information about how to fix it.
re.sub(r'error \[Errno 1\] _ssl.c:\d{3}: error:\d{8}:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error', r'See: http://git.io/vJrkM', message)
self.logger.exception(message, *args, **kwargs) self.logger.exception(message, *args, **kwargs)
classes.ErrorViewer.add(classes.UIError(message)) classes.ErrorViewer.add(classes.UIError(message))
...@@ -183,6 +185,11 @@ class Logger(object): ...@@ -183,6 +185,11 @@ class Logger(object):
# parse and submit errors to issue tracker # parse and submit errors to issue tracker
for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]: for curError in sorted(classes.ErrorViewer.errors, key=lambda error: error.time, reverse=True)[:500]:
#Skip SSL Error, we pointed them to a URL.
if re.search('http://git.io/vJrkM', curError.message):
classes.ErrorViewer.errors.remove(curError)
continue
try: try:
title_Error = str(curError.title) title_Error = str(curError.title)
if not len(title_Error) or title_Error == 'None': if not len(title_Error) or title_Error == 'None':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment