From 6e93c07a06d8a2b7e0aa651a11310182216abf94 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 16 Dec 1991 15:43:47 +0000 Subject: Change RuntimeError into IOError when module file not found on reload. --- Python/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v0.12