diff options
Diffstat (limited to 'PC/winreg.c')
-rw-r--r-- | PC/winreg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/winreg.c b/PC/winreg.c index 091b477..d3d6b83 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -1794,9 +1794,9 @@ PyMODINIT_FUNC PyInit_winreg(void) if (PyDict_SetItemString(d, "HKEYType", (PyObject *)&PyHKEY_Type) != 0) return NULL; - Py_INCREF(PyExc_WindowsError); + Py_INCREF(PyExc_OSError); if (PyDict_SetItemString(d, "error", - PyExc_WindowsError) != 0) + PyExc_OSError) != 0) return NULL; /* Add the relevant constants */ |