From 9e3150987c3641eb4f4b6efcd816e0d71b3ca4a9 Mon Sep 17 00:00:00 2001 From: Morg42 <43153739+Morg42@users.noreply.github.com> Date: Fri, 21 Jun 2024 17:31:17 +0200 Subject: [PATCH] smartplugin.py: fix --- lib/model/smartplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model/smartplugin.py b/lib/model/smartplugin.py index de81d1cf7b..11b647e0ff 100644 --- a/lib/model/smartplugin.py +++ b/lib/model/smartplugin.py @@ -994,7 +994,7 @@ def scheduler_remove(self, name): """ try: self._schedulers.remove(name) - except KeyError: + except ValueError: pass # TODO: maybe give a warning? if name != '': name = '.' + name