Skip to content

Commit

Permalink
admin: fix admin reset when player doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed Oct 28, 2024
1 parent 9d06f31 commit 7c22d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ballsdex/packages/admin/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ async def balls_reset(
percentage: int | None
The percentage of countryballs to delete, if not all. Used for sanctions.
"""
player = await Player.get(discord_id=user.id)
player = await Player.get_or_none(discord_id=user.id)
if not player:
await interaction.response.send_message(
"The user you gave does not exist.", ephemeral=True
Expand Down

0 comments on commit 7c22d26

Please sign in to comment.