Skip to content

Commit

Permalink
add AttributeError to blake2 check
Browse files Browse the repository at this point in the history
  • Loading branch information
hrmyd committed Apr 19, 2024
1 parent 67e87ef commit b3edd81
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 b3edd81

Please sign in to comment.