mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 08:47:47 +02:00
Ignore exceptions in kitten result processors
This commit is contained in:
@@ -1030,7 +1030,11 @@ class Window:
|
|||||||
import base64
|
import base64
|
||||||
self.kitten_result = json.loads(base64.b85decode(msg))
|
self.kitten_result = json.loads(base64.b85decode(msg))
|
||||||
for processor in self.kitten_result_processors:
|
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:
|
def add_kitten_result_processor(self, callback: Callable[['Window', Any], None]) -> None:
|
||||||
self.kitten_result_processors.append(callback)
|
self.kitten_result_processors.append(callback)
|
||||||
|
|||||||
Reference in New Issue
Block a user