[bos #32517][EDF] Dynamic logging: Fixed lack of semicolons.

This commit is contained in:
Konstantin LEONTEV 2022-10-21 17:39:05 +03:00
parent ef8aea4ac0
commit 36c94a9794

View File

@ -2870,16 +2870,16 @@ SMESH::SMESH_Mesh_ptr SMESH_Gen_i::CreateDualMesh(SMESH::SMESH_IDSource_ptr mesh
if (PyErr_Occurred()) { if (PyErr_Occurred()) {
// Restrieving python error // Restrieving python error
MESSAGE("Catching error") MESSAGE("Catching error");
PyObject *errtype, *errvalue, *traceback; PyObject *errtype, *errvalue, *traceback;
PyErr_Fetch(&errtype, &errvalue, &traceback); PyErr_Fetch(&errtype, &errvalue, &traceback);
if(errvalue != NULL) { if(errvalue != NULL) {
MESSAGE("Error has a value") MESSAGE("Error has a value");
PyObject *s = PyObject_Str(errvalue); PyObject *s = PyObject_Str(errvalue);
Py_ssize_t size; Py_ssize_t size;
std::string msg = PyUnicode_AsUTF8AndSize(s, &size); std::string msg = PyUnicode_AsUTF8AndSize(s, &size);
msg = "Issue with the execution of create_dual_mesh:\n"+msg; msg = "Issue with the execution of create_dual_mesh:\n"+msg;
MESSAGE("throwing exception") MESSAGE("throwing exception");
// We need to deactivate the GIL before throwing the exception // We need to deactivate the GIL before throwing the exception
PyGILState_Release(gstate); PyGILState_Release(gstate);
THROW_SALOME_CORBA_EXCEPTION(msg.c_str(), SALOME::INTERNAL_ERROR ); THROW_SALOME_CORBA_EXCEPTION(msg.c_str(), SALOME::INTERNAL_ERROR );