From 9470b0c738bea5d6ec25a3c3dcf2002c88f043fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 9 Apr 2021 10:44:37 +0200 Subject: [PATCH] fix: remove broken pickles --- lookyloo/helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lookyloo/helpers.py b/lookyloo/helpers.py index 93130573..2ff53460 100644 --- a/lookyloo/helpers.py +++ b/lookyloo/helpers.py @@ -322,6 +322,9 @@ def load_pickle_tree(capture_dir: Path) -> Optional[CrawledTree]: remove_pickle_tree(capture_dir) except EOFError: remove_pickle_tree(capture_dir) + except Exception: + remove_pickle_tree(capture_dir) + return None