Skip to content

Commit

Permalink
Update monai/data/dataset.py
Browse files Browse the repository at this point in the history
Co-authored-by: YunLiu <[email protected]>
Signed-off-by: Ishan Dutta <[email protected]>
  • Loading branch information
ishandutta0098 and KumoLiu authored Nov 17, 2023
1 parent c4b8782 commit 970fc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def _cachecheck(self, item_transformed):
raise e
except RuntimeError as e:
if "Invalid magic number; corrupt file" in str(e):
print(f"Corrupt cache file detected: {hashfile}. Deleting and recomputing.")
warnings.warn(f"Corrupt cache file detected: {hashfile}. Deleting and recomputing.")
hashfile.unlink()
else:
raise e
Expand Down

0 comments on commit 970fc2b

Please sign in to comment.