From d3ffaebd175fd8834bc576d91b890e28c1fd73a8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Jun 2022 08:20:01 +0530 Subject: [PATCH] Ignore exceptions in kitten result processors --- kitty/window.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index 608af4c80..997c9dca8 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -1030,7 +1030,11 @@ class Window: import base64 self.kitten_result = json.loads(base64.b85decode(msg)) for processor in self.kitten_result_processors: - processor(self, self.kitten_result) + try: + processor(self, self.kitten_result) + except Exception: + import traceback + traceback.print_exc() def add_kitten_result_processor(self, callback: Callable[['Window', Any], None]) -> None: self.kitten_result_processors.append(callback)