summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-06-03 07:21:32 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-06-03 07:21:32 +0200
commit5c904f4549da814d524edded8b550b33a370b040 (patch)
treebfeb4738a3aaeea811fb8abeb5859d8b8dba9dc6 /kconfiglib.py
parent102e518d4d9e8132fb258770373b8d4dc8fcf392 (diff)
Get rid of bare 'except:' in _save_old()
Catch Exception instead, which avoids catching things like keyboard interrupts.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 69093fb..5b6880d 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -6218,7 +6218,7 @@ def _save_old(path):
try:
copy_fn(path, path + ".old")
- except:
+ except Exception:
# Ignore errors from 'path' missing as well as other errors.
# <filename>.old file is usually more of a nice-to-have, and not worth
# erroring out over e.g. if <filename>.old happens to be a directory or