mirror of
https://github.com/Textualize/rich.git
synced 2025-08-31 15:37:24 +00:00
using record.exc_info to build traceback
This commit is contained in:
parent
79b4d1de5c
commit
db13ae6fdc
1 changed files with 2 additions and 1 deletions
|
@ -94,7 +94,8 @@ class RichHandler(Handler):
|
|||
|
||||
traceback = None
|
||||
if self.handle_tracebacks and record.exc_info:
|
||||
traceback = Traceback(
|
||||
traceback = Traceback.from_exception(
|
||||
*record.exc_info,
|
||||
width=self.tracebacks_width,
|
||||
extra_lines=self.tracebacks_extra_lines,
|
||||
theme=self.tracebacks_theme,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue