Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum

items from python)

Thanks Philipp Oeser (lichtwerk)
This commit is contained in:
2012-05-04 14:34:10 +00:00
parent 2bc29ff426
commit 133bdac1d0

View File

@@ -1071,8 +1071,8 @@ static EnumPropertyItem *enum_items_from_py(PyObject *seq_fast, PyObject *def, i
else {
MEM_freeN(items);
PyErr_SetString(PyExc_TypeError,
"EnumProperty(...): expected an tuple containing "
"(identifier, name description) and optionally a "
"EnumProperty(...): expected a tuple containing "
"(identifier, name, description) and optionally a "
"unique number");
return NULL;
}