diff --git a/rich/traceback.py b/rich/traceback.py index 985848b0..433aa7e9 100644 --- a/rich/traceback.py +++ b/rich/traceback.py @@ -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,