Fix T83566: bpy.props.CollectionProperty gives incorrect error

Error in commit a7b3047cefcbfae4d8b13e15026497fd5ae92730.
This commit is contained in:
Campbell Barton 2020-12-09 18:46:07 +11:00
parent ebe4bf6286
commit abddd7d5f9

@ -3494,7 +3494,6 @@ PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw)
if (!RNA_struct_is_a(ptype, &RNA_PropertyGroup)) {
PyErr_Format(PyExc_TypeError,
"CollectionProperty(...) expected an RNA type derived from %.200s",
RNA_struct_ui_name(&RNA_ID),
RNA_struct_ui_name(&RNA_PropertyGroup));
return NULL;
}