py api was raising SystemError exception incorrectly, this is intended for internal...
[blender.git] / source / blender / python / generic / mathutils.c
index 0098335169b16542685bedf0ddd916f8631bc925..1f802edcdea0a1d9e42df6ae8c3d2f81adb85569 100644 (file)
@@ -273,7 +273,7 @@ int _BaseMathObject_ReadCallback(BaseMathObject *self)
                return 1;
 
        if(!PyErr_Occurred())
-               PyErr_Format(PyExc_SystemError, "%s user has become invalid", Py_TYPE(self)->tp_name);
+               PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
        return 0;
 }
 
@@ -284,7 +284,7 @@ int _BaseMathObject_WriteCallback(BaseMathObject *self)
                return 1;
 
        if(!PyErr_Occurred())
-               PyErr_Format(PyExc_SystemError, "%s user has become invalid", Py_TYPE(self)->tp_name);
+               PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
        return 0;
 }
 
@@ -295,7 +295,7 @@ int _BaseMathObject_ReadIndexCallback(BaseMathObject *self, int index)
                return 1;
 
        if(!PyErr_Occurred())
-               PyErr_Format(PyExc_SystemError, "%s user has become invalid", Py_TYPE(self)->tp_name);
+               PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
        return 0;
 }
 
@@ -306,7 +306,7 @@ int _BaseMathObject_WriteIndexCallback(BaseMathObject *self, int index)
                return 1;
 
        if(!PyErr_Occurred())
-               PyErr_Format(PyExc_SystemError, "%s user has become invalid", Py_TYPE(self)->tp_name);
+               PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
        return 0;
 }