diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-03 07:21:32 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-06-03 07:21:32 +0200 |
| commit | 5c904f4549da814d524edded8b550b33a370b040 (patch) | |
| tree | bfeb4738a3aaeea811fb8abeb5859d8b8dba9dc6 | |
| parent | 102e518d4d9e8132fb258770373b8d4dc8fcf392 (diff) | |
Get rid of bare 'except:' in _save_old()
Catch Exception instead, which avoids catching things like keyboard
interrupts.
| -rw-r--r-- | kconfiglib.py | 2 |
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 |
