summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index c654940..7725245 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -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 */