From 8c77b9372baec1de159ff3739e9a48b6399b8212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 7 Dec 2022 15:30:19 +0100 Subject: [PATCH] fix: do not re-cache captures with errors. --- lookyloo/lookyloo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index efc1dee5..fb9f5bfd 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -429,7 +429,7 @@ class Lookyloo(): try: cache = self._captures_index[capture_uuid] # 2022-12-07: New cache format, store the user agent and referers. Re-cache if needed - if cache and not cache.user_agent: + if cache and not cache.user_agent and not cache.error: self._captures_index.reload_cache(capture_uuid) cache = self._captures_index[capture_uuid] return cache