Merge pull request #906 from jack1142/patch-1

Use `cls` instead of class name in `Traceback.from_exception()`
This commit is contained in:
Will McGugan 2021-01-11 13:50:09 +00:00 committed by GitHub
commit 83af486136
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,