Expand Up
@@ -2003,15 +2003,15 @@ import_run_modexport(PyThreadState *tstate, PyModExportFunction ex0,
if (!PyErr_Occurred()) {
PyErr_Format(
PyExc_SystemError,
"slot export function for module %s failed without setting an exception",
"module export hook for module %R failed without setting an exception",
info->name);
}
return NULL;
}
if (PyErr_Occurred()) {
PyErr_Format(
PyExc_SystemError,
"slot export function for module %s raised unreported exception",
"module export hook for module %R raised unreported exception",
info->name);
}
PyObject *result = PyModule_FromSlotsAndSpec(slots, spec);
Expand Down