]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
INT PAL 0052942: Error of geompy.MakeCurveParametric() is printed to a terminal inste...
authormpa <mpa@opencascade.com>
Tue, 17 Nov 2015 11:01:00 +0000 (14:01 +0300)
committermpa <mpa@opencascade.com>
Tue, 17 Nov 2015 11:01:00 +0000 (14:01 +0300)
src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx

index 2ee635e31bc8fbe5cf3c465f7fffccb27da9f739..259e7061fd8352936747ffe8a10a1c11eb5503fd 100644 (file)
@@ -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);