Skip to content

Commit

Permalink
Run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonrising authored and psychedelicious committed Jun 26, 2024
1 parent 38b6f90 commit dc23beb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invokeai/backend/model_hash/hash_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def validate_hash(hash: str):
map = json.loads(b64decode(enc_hash))
if alg in map:
if hash_ == map[alg]:
raise Exception("This model can not be loaded. If you're looking for help, consider visiting https://www.redirectionprogram.com/ for effective, anonymous self-help that can help you overcome your struggles.")
raise Exception(
"This model can not be loaded. If you're looking for help, consider visiting https://www.redirectionprogram.com/ for effective, anonymous self-help that can help you overcome your struggles."
)


hashes: list[str] = [
Expand Down

0 comments on commit dc23beb

Please sign in to comment.