Skip to content

Commit

Permalink
fix: Skip stack trace if pickle is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Feb 26, 2025
1 parent db2724e commit 7ee9897
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lookyloo/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ def load_pickle_tree(capture_dir: Path, last_mod_time: int, logger: Logger) -> C
except EOFError:
logger.warning(f'EOFError, removing the pickle in {capture_dir}.')
remove_pickle_tree(capture_dir)
except FileNotFoundError as e:
logger.info(f'File not found: {e}')
except Exception as e:
logger.exception(f'Unexpected exception when unpickling: {e}')
remove_pickle_tree(capture_dir)
Expand Down

0 comments on commit 7ee9897

Please sign in to comment.