From: Guido van Rossum Date: Mon, 16 Dec 1991 15:43:47 +0000 (+0000) Subject: Change RuntimeError into IOError when module file not found on reload. X-Git-Tag: v0.9.8~686 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e93c07a06d8a2b7e0aa651a11310182216abf94;p=thirdparty%2FPython%2Fcpython.git Change RuntimeError into IOError when module file not found on reload. --- diff --git a/Python/import.c b/Python/import.c index c654940d4f92..77252459d913 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 */