# Check that the digest matches
if not hmac.compare_digest(computed_digest, self.digest):
+ log.error("Upload %s had an incorrect digest:" % self)
+ log.error(" Expected: %s" % self.digest.hex())
+ log.error(" Got : %s" % computed_digest.hex())
+
raise ValueError("Invalid digest")
# If there has been any kind of exception, we want to delete the temporary file