PySnooper/pysnooper
kigland d5257380b2 Guard against f_lasti == -1 when detecting exception returns
The tracer reads co_code[frame.f_lasti] to decide whether a 'return' event was
caused by an exception. f_lasti can be -1 (e.g. a frame that hasn't executed
an instruction), and co_code[-1] reads the last byte -- the wrong opcode --
which can misreport a normal return as "Call ended by exception". Extract the
check into call_ended_by_exception() and return False when f_lasti < 0.
2026-06-08 11:57:40 -07:00
..
__init__.py
pycompat.py
tracer.py Guard against f_lasti == -1 when detecting exception returns 2026-06-08 11:57:40 -07:00
utils.py Format ExceptionGroup gracefully on Python 3.11+ 2026-03-08 12:51:15 +02:00
variables.py