Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e93c07

Browse files
committed
Change RuntimeError into IOError when module file not found on reload.
1 parent 7fa52f8 commit 6e93c07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ get_module(m, name, m_ret)
152152
if (m == NULL)
153153
err_setstr(NameError, name);
154154
else
155-
err_setstr(RuntimeError, "no module source file");
155+
err_setstr(IOError, "no module source file");
156156
return NULL;
157157
}
158158
/* Get mtime -- always useful */

0 commit comments

Comments
 (0)