py api was raising SystemError exception incorrectly, this is intended for internal...
[blender.git] / source / blender / python / intern / bpy_props.c
index 972ba57d5e170211687b7b986cb0b0b38734ddf2..2bdaa5267e1ec140153b0ca6a5a0e32169aa828c 100644 (file)
@@ -752,7 +752,7 @@ static StructRNA *pointer_type_from_py(PyObject *value, const char *error_prefix
        }
 
        if(!RNA_struct_is_a(srna, &RNA_PropertyGroup)) {
-                PyErr_Format(PyExc_SystemError, "%.200s expected an RNA type derived from PropertyGroup", error_prefix);
+                PyErr_Format(PyExc_TypeError, "%.200s expected an RNA type derived from PropertyGroup", error_prefix);
                return NULL;
        }