From 937cc3a449d8fad5ef389ca8b78a2850ad24f220 Mon Sep 17 00:00:00 2001 From: mpa Date: Tue, 17 Nov 2015 14:01:00 +0300 Subject: [PATCH] INT PAL 0052942: Error of geompy.MakeCurveParametric() is printed to a terminal instead of the Python Console --- src/GEOMImpl/GEOMImpl_ICurvesOperations.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2