summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-07-28 10:30:16 (GMT)
committerGitHub <noreply@github.com>2023-07-28 10:30:16 (GMT)
commit3f167de440f65eb03f795e33b98cf3e84627e213 (patch)
treed80aabd7204b502a3d6a4d557cebfb5dc7b81268 /Python/ceval.c
parent0902afbae29ef88bf9d212a7e11f9f17b6cbdeb5 (diff)
downloadcpython-3f167de440f65eb03f795e33b98cf3e84627e213.zip
cpython-3f167de440f65eb03f795e33b98cf3e84627e213.tar.gz
cpython-3f167de440f65eb03f795e33b98cf3e84627e213.tar.bz2
[3.12] GH-106898: Add the exception as an argument to the `PY_UNWIND` event callback function. (GH-107347) (GH-107382)
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 27dea27..4947420 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2070,7 +2070,7 @@ monitor_unwind(PyThreadState *tstate,
if (no_tools_for_event(tstate, frame, PY_MONITORING_EVENT_PY_UNWIND)) {
return;
}
- _Py_call_instrumentation_exc0(tstate, PY_MONITORING_EVENT_PY_UNWIND, frame, instr);
+ do_monitor_exc(tstate, frame, instr, PY_MONITORING_EVENT_PY_UNWIND);
}