From 43fe0fcf7c6184740943fec4c7d680c3eeb7075f Mon Sep 17 00:00:00 2001 From: Aron Puddy Date: Mon, 20 Jul 2026 13:57:43 +0930 Subject: [PATCH] safely handle missing countdown commands --- actions/Countdown/Countdown.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/actions/Countdown/Countdown.py b/actions/Countdown/Countdown.py index 80fb0db..5458430 100644 --- a/actions/Countdown/Countdown.py +++ b/actions/Countdown/Countdown.py @@ -70,6 +70,9 @@ def show(self) -> None: self.finish_command_executed = True def run_command(self, command): + if command is None: + return + command = command.strip() if command in [None, ""]: @@ -162,4 +165,4 @@ def on_time_row_changed(self, *args) -> None: def on_command_change(self, *args) -> None: settings = self.get_settings() settings["command"] = self.command_row.get_text() - self.set_settings(settings) \ No newline at end of file + self.set_settings(settings)