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 ff4ba4b commit 1d79d26Copy full SHA for 1d79d26
mypyc/lib-rt/module_shim.tmpl
@@ -7,6 +7,7 @@ PyInit_{modname}(void)
7
if (!(tmp = PyImport_ImportModule("{libname}"))) return NULL;
8
PyObject *capsule = PyObject_GetAttrString(tmp, "init_{full_modname}");
9
Py_DECREF(tmp);
10
+ if (capsule == NULL) return NULL;
11
void *init_func = PyCapsule_GetPointer(capsule, "{libname}.init_{full_modname}");
12
Py_DECREF(capsule);
13
if (!init_func) {{
0 commit comments