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