From f751f0b0ef3f9c6b3697d23848255517df3c3c48 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 28 Mar 2025 16:48:53 +0100 Subject: [PATCH] Text/fetching - Small fix for when last fetched was zero bytes and special options (removals/additions/changes) was set (#3065) --- changedetectionio/model/Watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index db9222faa..3fbe8f94a 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -575,7 +575,7 @@ class model(watch_base): import brotli filepath = os.path.join(self.watch_data_dir, 'last-fetched.br') - if not os.path.isfile(filepath): + if not os.path.isfile(filepath) or os.path.getsize(filepath) == 0: # If a previous attempt doesnt yet exist, just snarf the previous snapshot instead dates = list(self.history.keys()) if len(dates):