Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Nov 23, 2024
1 parent a899a84 commit 345e6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def _download_file(
if downloaded_digest and not resuming:
assert downloaded_digest is not None
final_digest = downloaded_digest.hexdigest() # we care only about hex
elif resuming:
elif digests:
if resuming:
lgr.debug("%s - resumed download. Need to check full checksum.", path)
else:
Expand Down

0 comments on commit 345e6e0

Please sign in to comment.