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 1a7cc3e commit 897efafCopy full SHA for 897efaf
graalpython/lib-graalpython/sys.py
@@ -184,7 +184,10 @@ def simple_print_traceback(e):
184
def __print_traceback__(typ, value, tb):
185
try:
186
import traceback
187
- traceback.print_exception(typ, value, tb)
+ lines = traceback.format_exception(typ, value, tb)
188
+ lines[-1] = lines[-1].replace(f'<unprintable {typ.__name__} object>', f'<exception str() failed>')
189
+ for line in lines:
190
+ print(line, file=stderr, end="")
191
except BaseException as exc:
192
print("Error in sys.excepthook:\n", file=stderr)
193
simple_print_traceback(exc)
0 commit comments