Salome HOME
replace all usage of bare except clause with except Exception clause
[tools/sat.git] / data / templates / PythonComponent / src / PYCMP / PYCMP_utils.py
index 56e155787b66ba1cd434368deb74a3edd722aa5f..da4f92b2a50df5d2b79a81703409d99c3af3a95d 100755 (executable)
@@ -88,7 +88,7 @@ def verbose():
     if __verbose__ is None:
         try:
             __verbose__ = int( os.getenv( 'SALOME_VERBOSE', 0 ) )
-        except:
+        except Exception:
             __verbose__ = 0
             pass
         pass
@@ -177,7 +177,7 @@ def findOrCreateComponent( study ):
         try:
             builder.DefineComponentInstance( father, getEngine() )
             pass
-        except:
+        except Exception:
             pass
         pass
     return father