]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Avoid printing error information if onGUIEvent() method is not implented in the Pytho...
authorvsr <vsr@opencascade.com>
Thu, 17 Nov 2005 12:37:38 +0000 (12:37 +0000)
committervsr <vsr@opencascade.com>
Thu, 17 Nov 2005 12:37:38 +0000 (12:37 +0000)
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx

index fa2d1a4e3578ff85395f79a744938354a04016ff..f0dbdab60f0514550b39aace9bdc0c3467acbeb4 100644 (file)
@@ -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();
   }
 }