WIP HACK: traceback entry lineno was none - how ?
This commit is contained in:
parent
08b4afd1bc
commit
56fc42ab9f
|
@ -210,6 +210,10 @@ class TracebackEntry:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def lineno(self) -> int:
|
def lineno(self) -> int:
|
||||||
|
if self._rawentry.tb_lineno is None:
|
||||||
|
# how did i trigger this 😱
|
||||||
|
return -1 # type: ignore[unreachable]
|
||||||
|
else:
|
||||||
return self._rawentry.tb_lineno - 1
|
return self._rawentry.tb_lineno - 1
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue