summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index b3e1910..ebce5dd 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -384,7 +384,7 @@ PyObject *PyErr_SetFromWindowsErrWithFilename(
else
v = Py_BuildValue("(is)", err, s);
if (v != NULL) {
- PyErr_SetObject(PyExc_EnvironmentError, v);
+ PyErr_SetObject(PyExc_WindowsError, v);
Py_DECREF(v);
}
LocalFree(s);