From 63366a0a83b49b639a40a9f1ae282c1c32f35dee Mon Sep 17 00:00:00 2001 From: mikebgrep Date: Sun, 20 Oct 2024 14:06:58 +0300 Subject: [PATCH] add if None for watch in queue_notification_for_watch --- changedetectionio/update_worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/update_worker.py b/changedetectionio/update_worker.py index 9dd460d3..af54eff4 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -81,7 +81,8 @@ class update_worker(threading.Thread): 'watch_url': watch.get('url') if watch else None, }) - n_object.update(watch.extra_notification_token_values()) + if watch: + n_object.update(watch.extra_notification_token_values()) logger.trace(f"Main rendered notification placeholders (diff_added etc) calculated in {time.time()-now:.3f}s") logger.debug("Queued notification for sending")