Skip to content

Commit

Permalink
Add error log if amount or user not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed Feb 20, 2024
1 parent b16c5ca commit bb060d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/cogs/karma.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ async def karma_donate(self, ctx: commands.Context, *args):

logger.debug(f'Karma transfer params -> User: {user}, amount: {amount}')
if user is None or amount is None:
logger.error(f'Could not find a user or amount in the provided arguments. args: {args}')
return await ctx.reply("Could not find a user or amount in the provided arguments.")

embed = discord.Embed(color=0xf66045)
Expand Down

0 comments on commit bb060d8

Please sign in to comment.