diff --git a/src/spyglass/decoding/decoding_merge.py b/src/spyglass/decoding/decoding_merge.py index bda6e10a1..71d8a2595 100644 --- a/src/spyglass/decoding/decoding_merge.py +++ b/src/spyglass/decoding/decoding_merge.py @@ -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(