Kaydet (Commit) 3d757540 authored tarafından Jack Jansen's avatar Jack Jansen

If there's an error in an fsspec argument raise MacOS.Error, not ValueError.

üst a4596a4b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment