mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Ignore validation on improperly formatted hashes (pytest)
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user