summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Python/macglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c
index 40cdfa2..46493d3 100644
--- a/Mac/Python/macglue.c
+++ b/Mac/Python/macglue.c
@@ -882,7 +882,7 @@ PyMac_GetFSSpec(PyObject *v, FSSpec *fs)
}
err = FSMakeFSSpec(refnum, parid, path, fs);
if ( err && err != fnfErr ) {
- PyErr_Mac(PyExc_ValueError, err);
+ PyMac_Error(err);
return 0;
}
return 1;