Private GIT

Skip to content
Snippets Groups Projects
Commit 539154d5 authored by TagForce's avatar TagForce
Browse files

Fix Title of None for Errors submitted through UI

- Changes the title assignment to use the message if there is no
Exception that generated the error. Should fix submitting errors that
were handled by SR itself, rather than an exception like configuration
errors or the like.
parent 28e0525a
No related branches found
No related tags found
No related merge requests found
......@@ -276,6 +276,6 @@ class UIError():
"""
def __init__(self, message):
self.title = sys.exc_info()[-2]
self.title = sys.exc_info()[-2] or message
self.message = message
self.time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment