diff --git a/src/Mod/Path/App/FeatureAreaPyImp.cpp b/src/Mod/Path/App/FeatureAreaPyImp.cpp index 83d92732a9d3..f6b9c5126775 100644 --- a/src/Mod/Path/App/FeatureAreaPyImp.cpp +++ b/src/Mod/Path/App/FeatureAreaPyImp.cpp @@ -69,8 +69,7 @@ PyObject* FeatureAreaPy::setParams(PyObject *args, PyObject *keywds) if (!PyArg_ParseTupleAndKeywords(args, keywds, "|" PARAM_PY_KWDS(AREA_PARAMS_CONF), kwlist, PARAM_REF(PARAM_FNAME,AREA_PARAMS_CONF))) - Py_Error(Base::BaseExceptionFreeCADError, - "Wrong parameters, call getParamsDesc() to get supported params"); + return 0; #define AREA_GET(_param) \ feature->PARAM_FNAME(_param).setValue(\