From ea12bef51c1192271a2bd25b891ee6572f4f052f Mon Sep 17 00:00:00 2001 From: TheYOSH Date: Wed, 13 Mar 2024 23:04:48 +0100 Subject: [PATCH] Fix deleting non working notification services. #878 --- terrariumNotification.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terrariumNotification.py b/terrariumNotification.py index c9251f4f3..2144c25df 100644 --- a/terrariumNotification.py +++ b/terrariumNotification.py @@ -290,7 +290,11 @@ def delete_service(self, service_id): if service_id not in self.services: return - self.services[service_id].stop() + try: + self.services[service_id].stop() + except Exception as ex: + logger.debug(f"Service {self} has not stop action: {ex}") + del self.services[service_id] def broadcast(self, subject, message, image):