Skip to content

Commit fbc5a8e

Browse files
committed
Ignore validation on improperly formatted hashes (pytest)
1 parent 8ce6e45 commit fbc5a8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

invokeai/backend/model_hash/hash_validator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44

55
def validate_hash(hash: str):
6+
if not ":" in hash:
7+
return
68
for enc_hash in hashes:
79
alg, hash_ = hash.split(":")
810
if alg == "blake3":

0 commit comments

Comments
 (0)