We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a27243b commit 600344dCopy full SHA for 600344d
tests/test_future/test_utils.py
@@ -382,7 +382,7 @@ def __str__(self):
382
out = Exception.__str__(self)
383
if hasattr(self, '__cause__') and self.__cause__ and hasattr(self.__cause__, '__traceback__') and self.__cause__.__traceback__:
384
out += '\n\nThe above exception was the direct cause of the following exception:\n\n'
385
- out += ''.join(traceback.format_tb(self.__cause__.__traceback__) + ['{}: {}'.format(self.__cause__.__class__.__name__, self.__cause__)])
+ out += ''.join(traceback.format_tb(self.__cause__.__traceback__) + ['{}: {}'.format(self.__cause__.__class__.__name__, self.__cause__.message)])
386
return out
387
else:
388
pass
0 commit comments