Skip to content

Commit 345e6e0

Browse files
committed
Fix condition
1 parent a899a84 commit 345e6e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dandi/download.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ def _download_file(
762762
if downloaded_digest and not resuming:
763763
assert downloaded_digest is not None
764764
final_digest = downloaded_digest.hexdigest() # we care only about hex
765-
elif resuming:
765+
elif digests:
766766
if resuming:
767767
lgr.debug("%s - resumed download. Need to check full checksum.", path)
768768
else:

0 commit comments

Comments
 (0)