summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Modules/macfsmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index 61127aa..9b635e3 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -1131,6 +1131,7 @@ int
PyMac_GetFSRef(PyObject *v, FSRef *fsr)
{
#if TARGET_API_MAC_OS8
+ PyErr_SetString(PyExc_TypeError, "FSRef objects not supported on this platform");
return 0;
#else
/* If it's an FSRef we're also okay. */