Automagic: Fix cache issue with missing files

This commit is contained in:
Mike Auty
2023-02-18 21:14:02 +00:00
parent 4f028416a3
commit 4734a3d1f8
@@ -332,7 +332,7 @@ class SqliteCache(CacheManagerInterface):
if inner_url.scheme == "file":
pathname = inner_url.path.split("!")[0]
if pathname:
if pathname and os.path.exists(pathname):
timestamp = datetime.datetime.fromtimestamp(
os.stat(pathname).st_mtime
)