From d1a130d595502436f5978d5d5ab85eb1b7b015aa Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 21 Jun 2024 16:17:36 +0200 Subject: [PATCH] only save if set --- 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 4aeb227e..a4ada44f 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -340,7 +340,8 @@ class update_worker(threading.Thread): err_text = "Warning, no filters were found, no change detection ran - Did the page change layout? update your Visual Filter if necessary." self.datastore.update_watch(uuid=uuid, update_obj={'last_error': err_text}) - watch.save_screenshot(screenshot=e.screenshot, as_error=True) + if e.screenshot: + watch.save_screenshot(screenshot=e.screenshot, as_error=True) # Only when enabled, send the notification if self.datastore.data['watching'][uuid].get('filter_failure_notification_send', False):