From b4754c0fd52195aee732875cd75012716eb06b26 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 17 Nov 2005 12:37:38 +0000 Subject: [PATCH] Avoid printing error information if onGUIEvent() method is not implented in the Python module - it is not an error --- src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx index fa2d1a4e3..f0dbdab60 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx @@ -799,8 +799,9 @@ void SALOME_PYQT_Module::guiEvent( const int theId ) PyObjWrapper res( PyObject_CallMethod( myModule, "OnGUIEvent", "i", theId ) ); if( !res ) { - // Error! - PyErr_Print(); + // VSR: this method may not be implemented in Python module + // PyErr_Print(); + PyErr_Clear(); } } -- 2.39.2