Skip to content

Commit 502d17e

Browse files
Relax the error check.
1 parent fb2087b commit 502d17e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/importdl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ _PyImport_RunModInitFunc(PyModInitFunction p0,
358358
return 0;
359359

360360
error:
361-
assert((PyErr_Occurred() == NULL) != (res.err[0] == '\0'));
361+
assert(PyErr_Occurred() || res.err[0] != '\0');
362362
Py_CLEAR(res.module);
363363
res.def = NULL;
364364
*p_res = res;

0 commit comments

Comments
 (0)