gh-111178: Regen clinic and fix exceptions.c post gh-128447 (#129060)

This commit is contained in:
Erlend E. Aasland 2025-01-20 13:46:30 +01:00 committed by GitHub
parent a30277a06a
commit da0f47ceab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 24 deletions

View file

@ -4256,7 +4256,7 @@ _PyException_AddNote(PyObject *exc, PyObject *note)
Py_TYPE(exc)->tp_name);
return -1;
}
PyObject *r = BaseException_add_note(_PyBaseExceptionObject_cast(exc), note);
PyObject *r = BaseException_add_note(exc, note);
int res = r == NULL ? -1 : 0;
Py_XDECREF(r);
return res;