Use `cls` instead of class name in `Traceback.from_exception()`

This commit is contained in:
jack1142 2021-01-11 13:59:16 +01:00 committed by GitHub
parent 6b0fd05c92
commit e6490b5dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,