Skip to content

Commit 0c9c364

Browse files
authored
Fix missing length in IntegrityError (#564)
This error is being raised over in #563 but failing because the length is missing?
1 parent 88952be commit 0c9c364

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonbuild/utils.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ def secure_download_stream(url, size, sha256):
247247
if length != size or digest != sha256:
248248
raise IntegrityError(
249249
"integrity mismatch on %s: wanted size=%d, sha256=%s; got size=%d, sha256=%s"
250-
% (url, size, sha256, length, digest)
250+
% (url, size, sha256, length, digest),
251+
length=length,
251252
)
252253

253254

0 commit comments

Comments
 (0)