fix: Properly re-set the cache if the tree was not built

pull/251/head
Raphaël Vinot 2021-08-25 15:00:26 +02:00
parent 83969ab8bb
commit bc5e41a1ca
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ class Lookyloo():
return None
cached = self.redis.hgetall(str(capture_dir))
if not cached:
if not cached or cached.get('incomplete_redirects') == '1':
cached = self._set_capture_cache(capture_dir)
try:
self._captures_index[capture_uuid] = CaptureCache(cached)