mirror of https://github.com/Textualize/rich.git
Merge pull request #906 from jack1142/patch-1
Use `cls` instead of class name in `Traceback.from_exception()`
This commit is contained in:
commit
83af486136
|
@ -222,7 +222,7 @@ class Traceback:
|
||||||
rich_traceback = cls.extract(
|
rich_traceback = cls.extract(
|
||||||
exc_type, exc_value, traceback, show_locals=show_locals
|
exc_type, exc_value, traceback, show_locals=show_locals
|
||||||
)
|
)
|
||||||
return Traceback(
|
return cls(
|
||||||
rich_traceback,
|
rich_traceback,
|
||||||
width=width,
|
width=width,
|
||||||
extra_lines=extra_lines,
|
extra_lines=extra_lines,
|
||||||
|
|
Loading…
Reference in New Issue