]> granicus.if.org Git - python/commitdiff
Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsError
authorGuido van Rossum <guido@python.org>
Thu, 2 Mar 2000 13:55:01 +0000 (13:55 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 2 Mar 2000 13:55:01 +0000 (13:55 +0000)
in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-)

Python/errors.c

index b3e19107895a6a8b242353edd548b7c7b3528de0..ebce5ddbb338a932b65d6d7e3df9300fcfb00529 100644 (file)
@@ -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);