Skip to content

Commit

Permalink
Merge pull request #237 from Haidra-Org/main
Browse files Browse the repository at this point in the history
fix: don't crash if ti strength is 0
  • Loading branch information
tazlin authored Aug 29, 2024
2 parents 9ea5d79 + 565d28a commit 274d58d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion horde_sdk/ai_horde_api/apimodels/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def validate_inject_ti(cls, v: str | None) -> str | None:
def validate_strength(cls, v: float) -> float:
"""Ensure that the strength is non-zero."""
if v == 0:
raise ValueError("strength must be non-zero")
logger.debug("strength should be non-zero")

return v

Expand Down

0 comments on commit 274d58d

Please sign in to comment.