Skip to content

Commit 16bea23

Browse files
committed
Display hashdigest instead of hash object upon failure.
1 parent cfb7421 commit 16bea23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pip/download.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def _check_hash(download_hash, link):
447447
raise InstallationError('Hash name mismatch for package %s' % link)
448448
if download_hash.hexdigest() != link.hash:
449449
logger.fatal("Hash of the package %s (%s) doesn't match the expected hash %s!"
450-
% (link, download_hash, link.hash))
450+
% (link, download_hash.hexdigest(), link.hash))
451451
raise InstallationError('Bad %s hash for package %s' % (link.hash_name, link))
452452

453453

0 commit comments

Comments
 (0)