From 613308881ca0d3f170bff42963b8b12e379dd6db Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 1 May 2022 21:41:29 +0200 Subject: [PATCH] Bugfix - dont update record when deleted during check --- changedetectionio/store.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changedetectionio/store.py b/changedetectionio/store.py index c95c172c..4380bd1e 100644 --- a/changedetectionio/store.py +++ b/changedetectionio/store.py @@ -145,6 +145,10 @@ class ChangeDetectionStore: def update_watch(self, uuid, update_obj): + # It's possible that the watch could be deleted before update + if not self.__data['watching'].get(uuid): + return + with self.lock: # In python 3.9 we have the |= dict operator, but that still will lose data on nested structures...