fix: do not re-cache captures with errors.

pull/559/head
Raphaël Vinot 2022-12-07 15:30:19 +01:00
parent d2b5605182
commit 8c77b9372b
1 changed files with 1 additions and 1 deletions

View File

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