Text/fetching - Small fix for when last fetched was zero bytes and special options (removals/additions/changes) was set (#3065)

This commit is contained in:
dgtlmoon
2025-03-28 16:48:53 +01:00
committed by GitHub
parent ea9ba3bb2e
commit f751f0b0ef

View File

@@ -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):