gh-128799: Add frame of except* to traceback when wrapping a naked exception (#128971)

This commit is contained in:
Irit Katriel 2025-01-25 13:00:23 +00:00 committed by GitHub
parent 9e52e553f4
commit c39ae8922b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 44 additions and 6 deletions

View file

@ -2717,7 +2717,7 @@ dummy_func(
PyObject *match_o = NULL;
PyObject *rest_o = NULL;
int res = _PyEval_ExceptionGroupMatch(exc_value, match_type,
int res = _PyEval_ExceptionGroupMatch(frame, exc_value, match_type,
&match_o, &rest_o);
DECREF_INPUTS();
ERROR_IF(res < 0, error);