Salome HOME
projects
/
tools
/
sat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
replace all usage of bare except clause with except Exception clause
[tools/sat.git]
/
commands
/
template.py
diff --git
a/commands/template.py
b/commands/template.py
index e4ddc59677672ec65b8130cd0f57eff046c6248d..cdc1c8165e93d3991457027f88c58ea051c5500c 100644
(file)
--- a/
commands/template.py
+++ b/
commands/template.py
@@
-35,7
+35,7
@@
except NameError:
# Python 2/3 compatibility for execfile function
try:
execfile
-except:
+except
Exception
:
def execfile(somefile, global_vars, local_vars):
with open(somefile) as f:
code = compile(f.read(), somefile, 'exec')