diff --git a/monai/data/dataset.py b/monai/data/dataset.py index ecb92eda97..31601268f4 100644 --- a/monai/data/dataset.py +++ b/monai/data/dataset.py @@ -352,7 +352,7 @@ def _cachecheck(self, item_transformed): # for more details: https://docs.python.org/3/library/shutil.html#shutil.move. try: shutil.move(temp_hash_file, hashfile) - except FileExistsError: + except (FileExistsError, PermissionError): # project-monai/monai issue 3613 pass return _item_transformed