[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f9e3442560
commit
36f407ce59
|
@ -743,7 +743,11 @@ class FormattedExcinfo:
|
||||||
) -> List[str]:
|
) -> List[str]:
|
||||||
"""Return formatted and marked up source lines."""
|
"""Return formatted and marked up source lines."""
|
||||||
lines = []
|
lines = []
|
||||||
if source is None or line_index >= len(source.lines) or line_index < -len(source.lines):
|
if (
|
||||||
|
source is None
|
||||||
|
or line_index >= len(source.lines)
|
||||||
|
or line_index < -len(source.lines)
|
||||||
|
):
|
||||||
source = Source("???")
|
source = Source("???")
|
||||||
line_index = 0
|
line_index = 0
|
||||||
if line_index < 0:
|
if line_index < 0:
|
||||||
|
|
Loading…
Reference in New Issue