From: vsr Date: Thu, 17 Nov 2005 12:37:38 +0000 (+0000) Subject: Avoid printing error information if onGUIEvent() method is not implented in the Pytho... X-Git-Tag: V3_1_0a3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b4754c0fd52195aee732875cd75012716eb06b26;p=modules%2Fgui.git Avoid printing error information if onGUIEvent() method is not implented in the Python module - it is not an error --- 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(); } }