Skip to content

Commit

Permalink
Add comment about AssertionError catch in cached_download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Apr 13, 2023
1 parent 3261d02 commit 137b24f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gdown/cached_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def cached_download(
assert_md5sum(path, md5, quiet=quiet)
return path
except AssertionError as e:
# show warning and overwrite if md5 doesn't match
print(e, file=sys.stderr)

# download
Expand Down

0 comments on commit 137b24f

Please sign in to comment.