- clear some warnings

- rename layout.operator_enums -> operator_enum (since we have operator_menu_enum, only called in 4 places)
This commit is contained in:
2011-02-18 06:07:41 +00:00
parent 6524d27462
commit d17df68c24
10 changed files with 14 additions and 14 deletions

View File

@@ -137,7 +137,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
ot= WM_operatortype_find(opname, TRUE);
if (ot == NULL) {
PyErr_Format(PyExc_LookupError, "Calling operator \"bpy.ops.%s\" error, could not be found", opname);
PyErr_Format(PyExc_AttributeError, "Calling operator \"bpy.ops.%s\" error, could not be found", opname);
return NULL;
}