From 50f61740c4bb8510de85b155a00b99257379af54 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 12 Jan 2026 22:16:16 +0100 Subject: [PATCH] mpos_sdl_keyboard.py: catch exception in micropython.schedule --- internal_filesystem/lib/mpos/indev/mpos_sdl_keyboard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal_filesystem/lib/mpos/indev/mpos_sdl_keyboard.py b/internal_filesystem/lib/mpos/indev/mpos_sdl_keyboard.py index e1cc39db..1445e549 100644 --- a/internal_filesystem/lib/mpos/indev/mpos_sdl_keyboard.py +++ b/internal_filesystem/lib/mpos/indev/mpos_sdl_keyboard.py @@ -370,7 +370,10 @@ class MposSDLKeyboard(keypad_framework.KeypadDriver): else: self.__current_state = self.RELEASED - micropython.schedule(MposSDLKeyboard.read, self) + try: + micropython.schedule(MposSDLKeyboard.read, self) + except Exception as e: + print(f"mpos_sdl_keyboard.py failed to call micropython.schedule: {e}") def _get_key(self): return self.__current_state, self.__last_key