mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
gh-105873: Make _xxsubinterpreters
use exception type name in shared exception (#105874)
This commit is contained in:
parent
2ef1dc37f0
commit
69a39bd9ad
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue