-
-
Save daviddavis/2e6ab1872d97230d144a6cd1f9d05e31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pulpcore/download/base.py b/pulpcore/download/base.py | |
index 69472115e..013e43990 100644 | |
--- a/pulpcore/download/base.py | |
+++ b/pulpcore/download/base.py | |
@@ -193,6 +193,8 @@ class BaseDownloader: | |
if self.expected_digests: | |
for algorithm, expected_digest in self.expected_digests.items(): | |
if expected_digest != self._digests[algorithm].hexdigest(): | |
+ digest = self._digests[algorithm].hexdigest() | |
+ log.warn(f"Received checksum {digest} for {self.url} but expected {expected_digest}") | |
raise DigestValidationError() | |
def validate_size(self): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@daviddavis we should put this in core, it seems like the
DigestValidationError
sometimes gets swallowed up.