summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-09-20 17:49:01 (GMT)
committerGitHub <noreply@github.com>2022-09-20 17:49:01 (GMT)
commit32d80decbf0ab07b8083467c9222dffb7790c08e (patch)
treef7ec7bd262a38a0b31bd9cc773a94d3fb4eac14c /Python/ceval.c
parentfc1cbe761b6111738c8ba5fd9180217d3118c8aa (diff)
downloadcpython-32d80decbf0ab07b8083467c9222dffb7790c08e.zip
cpython-32d80decbf0ab07b8083467c9222dffb7790c08e.tar.gz
cpython-32d80decbf0ab07b8083467c9222dffb7790c08e.tar.bz2
GH-96864: Check for error between line and opcode events (GH-96880)
(cherry picked from commit c10e33ac119d96c4d88d5ae8b59e65a76ae0ad3c) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index a5dfacf..f95e95c 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -6933,7 +6933,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;