summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Modules/macfsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 2c0c8e1..0db4022 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -979,7 +979,7 @@ initmacfs()
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
- ErrorObject = PyErr_NewException("macfs.error", NULL, NULL);
+ ErrorObject = PyMac_GetOSErrException();
PyDict_SetItemString(d, "error", ErrorObject);
Mfsatype.ob_type = &PyType_Type;