diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c index d6b0f179cca..661d1b805f9 100644 --- a/source/blender/python/api2_2x/Draw.c +++ b/source/blender/python/api2_2x/Draw.c @@ -785,6 +785,10 @@ static PyObject *Method_Create( PyObject * self, PyObject * args ) but = NULL; PyErr_SetString( PyExc_TypeError, "expected string, float, int or 3-float tuple argument" ); } + + if (but != NULL) { + PyErr_Clear(); + } return (PyObject*) but; }