From 23bad9bc4a4931450a1661c81fe60c705c6ce259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 27 Sep 2022 12:28:15 +0200 Subject: [PATCH] fix: More exceptions avoidance on broken captures --- lookyloo/lookyloo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 8ed3739a..790015b6 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -733,7 +733,7 @@ class Lookyloo(): total_captures, details = self.indexing.get_body_hash_captures(blob_hash, url, filter_capture_uuid=capture_uuid, limit=-1, prefered_uuids=self._captures_index.cached_captures) for h_capture_uuid, url_uuid, url_hostname, same_url in details: cache = self.capture_cache(h_capture_uuid) - if cache: + if cache and hasattr(cache, 'title'): if same_url: captures_list['same_url'].append((h_capture_uuid, url_uuid, cache.title, cache.timestamp.isoformat(), url_hostname)) else: