fix: remove broken pickles

pull/197/head
Raphaël Vinot 2021-04-09 10:44:37 +02:00
parent 7707d638cf
commit 9470b0c738
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ def load_pickle_tree(capture_dir: Path) -> Optional[CrawledTree]:
remove_pickle_tree(capture_dir) remove_pickle_tree(capture_dir)
except EOFError: except EOFError:
remove_pickle_tree(capture_dir) remove_pickle_tree(capture_dir)
except Exception:
remove_pickle_tree(capture_dir)
return None return None