Private GIT

Skip to content
Snippets Groups Projects
Commit 7b5a3377 authored by Alexandre Beloin's avatar Alexandre Beloin
Browse files

Merge pull request #1713 from abeloin/patch-logger_title

Fix no title when submitting errors
parents b595d778 d6148a55
No related branches found
No related tags found
No related merge requests found
...@@ -176,8 +176,8 @@ class Logger(object): ...@@ -176,8 +176,8 @@ 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]:
try: try:
if len(curError.title) > 1024: if len(str(curError.title)) > 1024:
title_Error = str(curError.title[0:1024]) title_Error = str(curError.title)[0:1024]
else: else:
title_Error = str(curError.title) title_Error = str(curError.title)
except Exception as e: except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment