Skip to content

Commit 21a49b4

Browse files
Relax the error check.
1 parent c7c6381 commit 21a49b4

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
@@ -354,7 +354,7 @@ _PyImport_RunModInitFunc(PyModInitFunction p0,
354354
return 0;
355355

356356
error:
357-
assert((PyErr_Occurred() == NULL) != (res.err[0] == '\0'));
357+
assert(PyErr_Occurred() || res.err[0] != '\0');
358358
Py_CLEAR(res.module);
359359
res.def = NULL;
360360
*p_res = res;

0 commit comments

Comments
 (0)