Skip to content

Commit

Permalink
Fix invalid error code in `GET /api/v1/bot/<guildid>/attacks/chain-bo…
Browse files Browse the repository at this point in the history
…nus/<factionid>/length`

Signed-off-by: tiksan <webmaster@deek.sh>
  • Loading branch information
dssecret committed Jan 27, 2025
1 parent 2ac8246 commit 39a2202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/api/v1/bot/attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def faction_chain_bonus_length(guild_id: int, faction_tid: int, *args, **kwargs)
try:
length = int(data["length"])
except (KeyError, ValueError, TypeError):
return make_exception_response("", key) # TODO: add error code
return make_exception_response("0", key, details={"message": "Invalid chain length"})

try:
guild: Server = Server.select(Server.admins, Server.factions).where(Server.sid == guild_id).get()
Expand Down

0 comments on commit 39a2202

Please sign in to comment.