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 bfa98a1 commit 465061aCopy full SHA for 465061a
1 file changed
Objects/sentinelobject.c
@@ -38,6 +38,7 @@ caller(void)
38
assert(PyFunction_Check(func));
39
PyObject *r = PyFunction_GetModule((PyObject *)func);
40
if (!r) {
41
+ assert(!PyErr_Occurred());
42
Py_RETURN_NONE;
43
}
44
return Py_NewRef(r);
0 commit comments