From 703922c369052cf4626f5d293dec244d88809e1c Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 1 May 2022 19:40:05 +0200 Subject: [PATCH] Oops --- changedetectionio/update_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/update_worker.py b/changedetectionio/update_worker.py index 600cd232f..a943b2cd9 100644 --- a/changedetectionio/update_worker.py +++ b/changedetectionio/update_worker.py @@ -142,7 +142,7 @@ class update_worker(threading.Thread): self.datastore.update_watch(uuid=uuid, update_obj={'fetch_time': round(time.time() - now, 3), 'last_checked': round(time.time())}) # Always save the screenshot if it's available - if screenshot: + if screenshot is not None: self.datastore.save_screenshot(watch_uuid=uuid, screenshot=screenshot) self.current_uuid = None # Done