gh-105873: Make _xxsubinterpreters use exception type name in shared exception (#105874)

This commit is contained in:
Radislav Chugunov 2023-07-08 11:44:50 +03:00 committed by GitHub
parent 2ef1dc37f0
commit 69a39bd9ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -273,7 +273,7 @@ _sharedexception_bind(PyObject *exc, _sharedexception *sharedexc)
assert(exc != NULL);
const char *failure = NULL;
PyObject *nameobj = PyUnicode_FromFormat("%S", Py_TYPE(exc));
PyObject *nameobj = PyUnicode_FromString(Py_TYPE(exc)->tp_name);
if (nameobj == NULL) {
failure = "unable to format exception type name";
goto error;