]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change RuntimeError into IOError when module file not found on reload.
authorGuido van Rossum <guido@python.org>
Mon, 16 Dec 1991 15:43:47 +0000 (15:43 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Dec 1991 15:43:47 +0000 (15:43 +0000)
Python/import.c

index c654940d4f9279be3109f43ef0c1cc15d262e8bd..77252459d913eb7614dcd22ae6ccaca1c0561eea 100644 (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 */