mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
INT PAL 0052942: Error of geompy.MakeCurveParametric() is printed to a terminal instead of the Python Console
This commit is contained in:
parent
d3b57addeb
commit
937cc3a449
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user