X-Git-Url: http://git.salome-platform.org/gitweb/?p=tools%2Fsat.git;a=blobdiff_plain;f=src%2Fdebug.py;fp=src%2Fdebug.py;h=da1ca94ff7e0923a8c74e3abeb93204915d9e3d0;hp=330fb6df37c33468237c5c49f03f4e04528161b4;hb=9d976c8e73cbccd8326e2046c6d7b4b86b974b93;hpb=076787ab22f087dc3a9a0212e0b09227b250bf32 diff --git a/src/debug.py b/src/debug.py index 330fb6d..da1ca94 100755 --- a/src/debug.py +++ b/src/debug.py @@ -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