Salome HOME
feat(all): replace all usage of bare except clause with except Exception clause
[tools/sat.git] / src / salomeTools.py
index a49524b24c465199efc051015dc06bed564dd2f7..2b1a50d442a1b9c3706346f7dbd0fbeb517f0d97 100755 (executable)
@@ -67,7 +67,7 @@ gettext.install("salomeTools", os.path.join(srcdir, "i18n"))
 
 try:
   _LANG = os.environ["LANG"] # original locale
-except:
+except Exception:
   _LANG = "en_US.utf8" #default
 
 # The possible hooks : 
@@ -356,7 +356,7 @@ class Sat(object):
                     sys.stderr = ff
                     import paramiko
                     sys.stderr = saveout
-                except:
+                except Exception:
                     sys.stderr = saveout
                     continue