INT PAL 0052942: Error of geompy.MakeCurveParametric() is printed to a terminal instead of the Python Console

This commit is contained in:
mpa 2015-11-17 14:01:00 +03:00
parent d3b57addeb
commit 937cc3a449

View File

@ -997,7 +997,7 @@ Handle(GEOM_Object) GEOMImpl_ICurvesOperations::MakeCurveParametric
PyObject* obj = PyRun_String(aPyScript.ToCString(), Py_file_input, main_dict, NULL); 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 !!!"); SetErrorCode("Error during executing of python script !!!");
PyErr_Print(); PyErr_Print();
PyGILState_Release(gstate); PyGILState_Release(gstate);