Using rich.traceback with traceback.print_stack() #1531
Unanswered
remisphere
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Please see Printing Tracebacks section. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to know if there is a way to format the output of the standard library's
traceback.print_stack()
usingrich.traceback
.traceback.print_stack()
displays a traceback where it is called, without interrupting the program,but from the docs, it seems that
rich.traceback
needs to raise an exception to work.Is there any workaround to pretty print a trace without ending a program ?
I would like to use it to pinpoint warnings, following the first part of this Stack Overflow answer.
Beta Was this translation helpful? Give feedback.
All reactions