Skip to content

Commit

Permalink
Update src/spyglass/decoding/decoding_merge.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Brozdowski <[email protected]>
  • Loading branch information
edeno and CBroz1 authored Jan 18, 2024
1 parent d64cefc commit c08d4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spyglass/decoding/decoding_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def cleanup(self, dry_run=False):
logger.info(f"Removing {path}")
if not dry_run:
try:
path.unlink()
except (PermissionError, FileNotFoundError):
path.unlink(missing_ok=True) # Ignore FileNotFoundError
except PermissionError:
logger.warning(f"Unable to remove {path}, skipping")

table_model_paths = list(
Expand Down

0 comments on commit c08d4fc

Please sign in to comment.