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