mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Ignore validation on improperly formatted hashes (pytest)
This commit is contained in:
parent
8ce6e4540e
commit
fbc5a8ec65
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user