File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -448,13 +448,12 @@ def _wrap_errors(error):
448
448
original_formatargvalues = inspect .formatargvalues
449
449
inspect .formatargvalues = _custom_formatargvalues
450
450
try :
451
- # Use IPython traceback formatting to build colored ANSI traceback
452
- # string
451
+ # Use IPython traceback formatting to build the traceback string.
453
452
ostream = io .StringIO ()
454
453
ipytb = FormattedTB (
455
454
tb_offset = skip ,
456
455
mode = "Verbose" ,
457
- color_scheme = "Linux " ,
456
+ color_scheme = "NoColor " ,
458
457
include_vars = True ,
459
458
ostream = ostream ,
460
459
)
@@ -463,13 +462,12 @@ def _wrap_errors(error):
463
462
# Restore formatargvalues
464
463
inspect .formatargvalues = original_formatargvalues
465
464
466
- # Print colored ANSI representation if requested
467
- ansi_stacktrace = ostream .getvalue ()
465
+ stacktrace = ostream .getvalue ()
468
466
469
467
if self .inline_exceptions :
470
- print (ansi_stacktrace )
468
+ print (stacktrace )
471
469
472
- return ansi_stacktrace , 500
470
+ return stacktrace , 500
473
471
474
472
@property
475
473
def active (self ):
You can’t perform that action at this time.
0 commit comments