Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Python/importdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ _PyImport_GetModuleExportHooks(
if (exportfunc) {
*modexport = (PyModExportFunction)exportfunc;
return 2;
} else if (PyErr_Occurred()) {
PyErr_Clear();
}
Comment on lines +416 to 418
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to check for PyErr_Occurred():

Suggested change
} else if (PyErr_Occurred()) {
PyErr_Clear();
}
}
PyErr_Clear();


exportfunc = findfuncptr(
Expand Down
Loading