Skip to content

Commit

Permalink
Merge pull request #1088 from hrmyd/hrmyd-fips-patch
Browse files Browse the repository at this point in the history
add `AttributeError` to `hashlib.blake2b` check
  • Loading branch information
sigmavirus24 committed Apr 20, 2024
2 parents 67e87ef + b3edd81 commit d0b6892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twine/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def __init__(self, filename: str) -> None:
self._blake_hasher = None
try:
self._blake_hasher = hashlib.blake2b(digest_size=256 // 8)
except (ValueError, TypeError):
except (ValueError, TypeError, AttributeError):
# FIPS mode disables blake2
pass

Expand Down

0 comments on commit d0b6892

Please sign in to comment.