From 52a4bddc25c12410bcbcbb337009769700f2a97d Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 17 Mar 2025 09:28:27 -0500 Subject: [PATCH] Fix missing `length` in `IntegrityError` --- pythonbuild/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pythonbuild/utils.py b/pythonbuild/utils.py index ca15a616..14d9a474 100644 --- a/pythonbuild/utils.py +++ b/pythonbuild/utils.py @@ -247,7 +247,8 @@ def secure_download_stream(url, size, sha256): if length != size or digest != sha256: raise IntegrityError( "integrity mismatch on %s: wanted size=%d, sha256=%s; got size=%d, sha256=%s" - % (url, size, sha256, length, digest) + % (url, size, sha256, length, digest), + length=length, )