From 5c904f4549da814d524edded8b550b33a370b040 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 3 Jun 2019 07:21:32 +0200 Subject: Get rid of bare 'except:' in _save_old() Catch Exception instead, which avoids catching things like keyboard interrupts. --- kconfiglib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. # .old file is usually more of a nice-to-have, and not worth # erroring out over e.g. if .old happens to be a directory or -- cgit v1.2.3