mirror of https://github.com/Textualize/rich.git
Use `cls` instead of class name in `Traceback.from_exception()`
This commit is contained in:
parent
6b0fd05c92
commit
e6490b5dbd
|
@ -222,7 +222,7 @@ class Traceback:
|
|||
rich_traceback = cls.extract(
|
||||
exc_type, exc_value, traceback, show_locals=show_locals
|
||||
)
|
||||
return Traceback(
|
||||
return cls(
|
||||
rich_traceback,
|
||||
width=width,
|
||||
extra_lines=extra_lines,
|
||||
|
|
Loading…
Reference in New Issue