[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
Platform