Salome HOME
replace all usage of bare except clause with except Exception clause
[tools/sat.git] / data / templates / Application / config / splash_generator / splash2.py
index 1521075b8d14de1e4e9c23ebb3eb1df0240426c8..8c9e3cdc91e9cb6f01bc306ab75e7667d3fabe5e 100755 (executable)
@@ -9,7 +9,7 @@ import os, sys
 
 try:
   __LANG__ = os.environ["LANG"] # original locale
-except:
+except Exception:
   __LANG__ = "en_US.utf8" #default
 
 __FR__={
@@ -27,7 +27,7 @@ def _loc(text):
   if "FR" in __LANG__:
     try:
       return __FR__[text]
-    except:
+    except Exception:
       return text
   return text