diff options
-rw-r--r-- | gemato/hash.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gemato/hash.py b/gemato/hash.py index 8749bfa..e46ea75 100644 --- a/gemato/hash.py +++ b/gemato/hash.py @@ -39,7 +39,12 @@ def get_hash_by_name(name): # general hash support if name in hashlib.algorithms_available: - return hashlib.new(name) + try: + return hashlib.new(name) + except ValueError: + # some broken Python versions list unsupported algos + # in algorithms_available with OpenSSL-3 + pass raise UnsupportedHash(name) |