Salome HOME
replace all usage of bare except clause with except Exception clause
[tools/sat.git] / src / debug.py
index 330fb6df37c33468237c5c49f03f4e04528161b4..da1ca94ff7e0923a8c74e3abeb93204915d9e3d0 100755 (executable)
@@ -61,7 +61,7 @@ import src
 # Compatibility python 2/3 for unicode
 try:
     _test = unicode
-except:
+except Exception:
     unicode = str
 
 # Compatibility python 2/3 for StringIO
@@ -272,7 +272,7 @@ def _saveConfigRecursiveDbg(config, aStream, indent, path, nb):
     try: #type config, mapping
       order = object.__getattribute__(config, 'order')
       data = object.__getattribute__(config, 'data')
-    except:
+    except Exception:
       aStream.write("%s%s : '%s'\n" % (indstr, path, str(config)))
       return     
     for key in sorted(data): #order): # data as sort alphabetical, order as initial order