Skip to content

Commit

Permalink
Ignore errors for shutil.rmtree() in BIDS writer
Browse files Browse the repository at this point in the history
  • Loading branch information
gsch-cmi committed Jun 10, 2024
1 parent 09a6a23 commit 750eba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bidsi/bids_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _merge_folder(
return path, True
case MergeStrategy.OVERWRITE:
# Remove and recreate directory.
shutil.rmtree(path)
shutil.rmtree(path, ignore_errors=True)
self._ensure_directory_path(path, is_dir=True)
return path, True
case MergeStrategy.KEEP:
Expand Down

0 comments on commit 750eba0

Please sign in to comment.