Skip to content

Commit 5b0b5f4

Browse files
e-mnyericspod
andauthored
Apply suggestions from code review
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com> Signed-off-by: Enoch Mok <65853622+e-mny@users.noreply.github.com>
1 parent e8e1f4b commit 5b0b5f4

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
@@ -229,7 +229,7 @@ def download_url(
229229
if filepath.exists():
230230
if not check_hash(filepath, hash_val, hash_type):
231231
raise ValueError(
232-
f"{hash_type} hash check of existing file failed: filepath={filepath}, expected {hash_type}={hash_val}."
232+
f"{hash_type} hash check of existing file failed: {filepath=}, expected {hash_type}={hash_val}."
233233
)
234234
logger.info(f"File exists: {filepath}, skipped downloading.")
235235
return

0 commit comments

Comments
 (0)