- clear some warnings
[blender.git] / source / blender / python / intern / bpy_operator.c
index a70ea2e9b4a0eb5d67fc1f3c0f1c8a774aca379d..cb527f562eb203c02c05842dd65573fa91c46fde 100644 (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;
        }