File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 73
73
Table ,
74
74
)
75
75
from rich .text import Text
76
+ from rich .traceback import Traceback
76
77
77
78
from . import (
78
79
argparse_completer ,
@@ -1357,12 +1358,14 @@ def pexcept(
1357
1358
1358
1359
# Only print a traceback if we're in debug mode and one exists.
1359
1360
if self .debug and sys .exc_info () != (None , None , None ):
1360
- console .print_exception (
1361
- width = console .width ,
1361
+ traceback = Traceback (
1362
+ width = None , # Use all available width
1363
+ code_width = None , # Use all available width
1362
1364
show_locals = True ,
1363
1365
max_frames = 0 , # 0 means full traceback.
1364
1366
word_wrap = True , # Wrap long lines of code instead of truncate
1365
1367
)
1368
+ console .print (traceback )
1366
1369
console .print ()
1367
1370
return
1368
1371
You can’t perform that action at this time.
0 commit comments