fix: a broken/missing pickle is handled elsewhere

pull/265/head
Raphaël Vinot 2021-09-23 09:17:34 +02:00
parent 19c8c54b0b
commit aa7173d27d
1 changed files with 1 additions and 5 deletions

View File

@ -53,11 +53,7 @@ class CaptureCache():
@property @property
def tree(self) -> CrawledTree: def tree(self) -> CrawledTree:
try: return load_pickle_tree(self.capture_dir)
return load_pickle_tree(self.capture_dir)
except TreeNeedsRebuild:
# The pickle is missing, that shouldn't at this stage.
raise LookylooException(f'Unable to get pickle for {self.uuid} - {self.capture_dir}')
def remove_pickle_tree(capture_dir: Path) -> None: def remove_pickle_tree(capture_dir: Path) -> None: