GH-96864: Check for error between line and opcode events (GH-96880)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user