diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-09-19 21:02:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 21:02:24 (GMT) |
commit | c10e33ac119d96c4d88d5ae8b59e65a76ae0ad3c (patch) | |
tree | d98d4b9a2cb0fae394a301c79bfdb73a86f0cb2a /Python/ceval.c | |
parent | 5b3a2569f4b4dfb58a8f90a241f9dac1a7ea4bf6 (diff) | |
download | cpython-c10e33ac119d96c4d88d5ae8b59e65a76ae0ad3c.zip cpython-c10e33ac119d96c4d88d5ae8b59e65a76ae0ad3c.tar.gz cpython-c10e33ac119d96c4d88d5ae8b59e65a76ae0ad3c.tar.bz2 |
GH-96864: Check for error between line and opcode events (GH-96880)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 8891d6c..a07fb49 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -6293,7 +6293,7 @@ maybe_call_line_trace(Py_tracefunc func, PyObject *obj, } } /* Always emit an opcode event if we're tracing all opcodes. */ - if (f->f_trace_opcodes) { + if (f->f_trace_opcodes && result == 0) { result = call_trace(func, obj, tstate, frame, PyTrace_OPCODE, Py_None); } return result; |