From 6bb660ed82877876dfe4d80bf0e46524d8570eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 3 Jul 2023 17:04:55 +0200 Subject: [PATCH] fix: incorrect pickle rebuild, causing the index to get stuck --- lookyloo/capturecache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lookyloo/capturecache.py b/lookyloo/capturecache.py index fd9c80c6..5c4228a5 100644 --- a/lookyloo/capturecache.py +++ b/lookyloo/capturecache.py @@ -185,7 +185,8 @@ class CapturesIndex(Mapping): cc = CaptureCache(cached) # NOTE: checking for pickle to exist may be a bad idea here. if (cc.capture_dir.exists() - and (cc.capture_dir / 'tree.pickle').exists() + and ((cc.capture_dir / 'tree.pickle.gz').exists() + or (cc.capture_dir / 'tree.pickle').exists()) and not cc.incomplete_redirects): self.__cache[uuid] = cc return self.__cache[uuid]