From 345e6e0ed205c5a1aae4536b083af312affbadbf Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 22 Nov 2024 21:28:49 -0500 Subject: [PATCH] Fix condition --- dandi/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandi/download.py b/dandi/download.py index 587468546..894775bde 100644 --- a/dandi/download.py +++ b/dandi/download.py @@ -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: