Skip to content

Commit 600344d

Browse files
committed
attempt to fix another py2.6 test
1 parent a27243b commit 600344d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_future/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def __str__(self):
382382
out = Exception.__str__(self)
383383
if hasattr(self, '__cause__') and self.__cause__ and hasattr(self.__cause__, '__traceback__') and self.__cause__.__traceback__:
384384
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__)])
385+
out += ''.join(traceback.format_tb(self.__cause__.__traceback__) + ['{}: {}'.format(self.__cause__.__class__.__name__, self.__cause__.message)])
386386
return out
387387
else:
388388
pass

0 commit comments

Comments
 (0)