diff options
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 42fe2a0..2fb230a 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -141,7 +141,7 @@ static void RunStartupFile(PyCompilerFlags *cf) save_errno = errno; PySys_WriteStderr("Could not open PYTHONSTARTUP\n"); errno = save_errno; - PyErr_SetFromErrnoWithFilename(PyExc_IOError, + PyErr_SetFromErrnoWithFilename(PyExc_OSError, startup); PyErr_Print(); PyErr_Clear(); |