From dbfc65d5356c4a3d2ae56f47f1a608eb0669dbdf Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Wed, 22 Mar 2017 04:46:49 +0800 Subject: [PATCH] Path.Area: improved FeatureAreaPy error message --- src/Mod/Path/App/FeatureAreaPyImp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(\