summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-01-24 09:56:06 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-01-24 09:56:06 (GMT)
commit3d7575406f3ecb526c969bdf32b9b4d352aee8d3 (patch)
treec6dc24dc47329d0240e33400ff202406da983e27
parenta4596a4ba5d366c0c35db47ffbce23ff3d8d6723 (diff)
downloadcpython-3d7575406f3ecb526c969bdf32b9b4d352aee8d3.zip
cpython-3d7575406f3ecb526c969bdf32b9b4d352aee8d3.tar.gz
cpython-3d7575406f3ecb526c969bdf32b9b4d352aee8d3.tar.bz2
If there's an error in an fsspec argument raise MacOS.Error, not ValueError.
-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;