Skip to content
Snippets Groups Projects
Unverified Commit f63513ee authored by Pete Peterson's avatar Pete Peterson Committed by GitHub
Browse files

Merge pull request #21706 from mantidproject/fix-errorformatter-py34

Fix ErrorFormatter to workaround bug in Python 3.4
parents ef0d9af4 298a91a6
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ class ErrorFormatter(object):
all return by traceback.extract_tb
:return: A formatted string.
"""
lines = traceback.format_exception(exc_type, exc_value, None)
lines = traceback.format_exception_only(exc_type, exc_value)
if stack is not None:
lines.extend(traceback.format_list(stack))
return ''.join(lines)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment