Skip to content

Commit

Permalink
Fix deleting non working notification services. #878
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Mar 13, 2024
1 parent 6b80b8a commit ea12bef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion terrariumNotification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ea12bef

Please sign in to comment.