From: mpa Date: Tue, 17 Nov 2015 11:01:00 +0000 (+0300) Subject: INT PAL 0052942: Error of geompy.MakeCurveParametric() is printed to a terminal inste... X-Git-Tag: V8_0_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=937cc3a449d8fad5ef389ca8b78a2850ad24f220;p=modules%2Fgeom.git INT PAL 0052942: Error of geompy.MakeCurveParametric() is printed to a terminal instead of the Python Console --- diff --git a/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx b/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx index 2ee635e31..259e7061f 100644 --- a/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx @@ -997,7 +997,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCurveParametric PyObject* obj = PyRun_String(aPyScript.ToCString(), Py_file_input, main_dict, NULL); - if (obj == NULL) { + if (obj == NULL || obj == Py_None ) { SetErrorCode("Error during executing of python script !!!"); PyErr_Print(); PyGILState_Release(gstate);