You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG] Rich tracebacks raise another exception when suppressing sys
Describe the bug
I'm not entirely sure if this is a bug, but it got through testing as exception handling is hard to figure out because one tends to focus on checking the correct program behavior.
When the sys module is added to the tracebacks_suppres option of RichHandler, an error occurs inside the call of the `log.exception()' method:
During handling of the above exception, another exception occurred:
...
AttributeError: module 'sys' has no attribute 'file'. Did you mean: 'name'?
[BUG] Rich tracebacks raise another exception when suppressing sys
Describe the bug
I'm not entirely sure if this is a bug, but it got through testing as exception handling is hard to figure out because one tends to focus on checking the correct program behavior.
When the
sys
module is added to thetracebacks_suppres
option ofRichHandler
, an error occurs inside the call of the `log.exception()' method:Checklist
How to Reproduce
Minimal reproducible source code example:
Error Output:
Platform
System Information:
Diagnostics:
The text was updated successfully, but these errors were encountered: