Skip to content

Commit a96b14e

Browse files
Update monai/apps/utils.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent 8592172 commit a96b14e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

monai/apps/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,6 @@ def create_temp_dir(directory: str | None = None, delete_on_finalise: bool = Fal
459459
os.makedirs(directory, exist_ok=True)
460460

461461
if delete_on_finalise:
462-
atexit.register(shutil.rmtree, directory)
462+
atexit.register(shutil.rmtree, directory, ignore_errors=True)
463463

464464
return directory

0 commit comments

Comments
 (0)