Ignore validation on improperly formatted hashes (pytest)

This commit is contained in:
Brandon Rising 2024-06-18 09:38:22 -04:00 committed by Brandon
parent 8ce6e4540e
commit fbc5a8ec65

View File

@ -3,6 +3,8 @@ from base64 import b64decode
def validate_hash(hash: str):
if not ":" in hash:
return
for enc_hash in hashes:
alg, hash_ = hash.split(":")
if alg == "blake3":