Change RuntimeError into IOError when module file not found on reload.

This commit is contained in:
Guido van Rossum 1991-12-16 15:43:47 +00:00
parent 7fa52f84c7
commit 6e93c07a06

View file

@ -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 */