mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Change RuntimeError into IOError when module file not found on reload.
This commit is contained in:
parent
7fa52f84c7
commit
6e93c07a06
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ get_module(m, name, m_ret)
|
|||
if (m == NULL)
|
||||
err_setstr(NameError, name);
|
||||
else
|
||||
err_setstr(RuntimeError, "no module source file");
|
||||
err_setstr(IOError, "no module source file");
|
||||
return NULL;
|
||||
}
|
||||
/* Get mtime -- always useful */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue