diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-09-20 18:42:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 18:42:06 (GMT) |
commit | 21b5af9072a43275d52737a68d5cda2fab47f730 (patch) | |
tree | 55601d70205b93c11f43a85b078276fa41f5a552 /Python | |
parent | 96739bccf220689a54ef33341f431eda19c287fa (diff) | |
download | cpython-21b5af9072a43275d52737a68d5cda2fab47f730.zip cpython-21b5af9072a43275d52737a68d5cda2fab47f730.tar.gz cpython-21b5af9072a43275d52737a68d5cda2fab47f730.tar.bz2 |
[3.10] GH-96864: Check for error between line and opcode events (GH-96969)
(cherry picked from commit c10e33ac119d96c4d88d5ae8b59e65a76ae0ad3c)
Diffstat (limited to 'Python')
-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 df4b9a8..9719177 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -5512,7 +5512,7 @@ maybe_call_line_trace(Py_tracefunc func, PyObject *obj, } } /* Always emit an opcode event if we're tracing all opcodes. */ - if (frame->f_trace_opcodes) { + if (frame->f_trace_opcodes && result == 0) { result = call_trace(func, obj, tstate, frame, trace_info, PyTrace_OPCODE, Py_None); } return result; |