Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fae8f9 commit 8e54b1cCopy full SHA for 8e54b1c
1 file changed
Python/importdl.c
@@ -77,6 +77,8 @@ _PyImport_LoadDynamicModule(PyObject *name, PyObject *path, FILE *fp)
77
PyObject *msg = PyUnicode_FromFormat("dynamic module does not define "
78
"init function (PyInit_%s)",
79
shortname);
80
+ if (msg == NULL)
81
+ goto error;
82
PyErr_SetImportError(msg, name, path);
83
Py_DECREF(msg);
84
goto error;
0 commit comments