From 8c925c7aa3d8823da5b8dd1f9d5034046b5ed75a Mon Sep 17 00:00:00 2001 From: Niki Date: Fri, 8 May 2026 21:06:04 +0800 Subject: [PATCH] fix: replace bare except with except Exception in backend.py Bare except: catches SystemExit and KeyboardInterrupt. --- khal/khalendar/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khal/khalendar/backend.py b/khal/khalendar/backend.py index 823e22653..fd6553606 100644 --- a/khal/khalendar/backend.py +++ b/khal/khalendar/backend.py @@ -98,7 +98,7 @@ def at_once(self) -> Iterator["SQLiteDb"]: self._at_once = True try: yield self - except: + except Exception: raise else: self.conn.commit()