added error handling of missing commands
This commit is contained in:
parent
acbd6d0fe8
commit
e7050906bb
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@ async def on_message(ctx):
|
|||
try:
|
||||
await bot.process_commands(ctx)
|
||||
except commands.CommandNotFound:
|
||||
pass
|
||||
bot.logger.info("Command not found.")
|
||||
except discord.ext.commands.errors.CommandNotFound:
|
||||
bot.logger.info("Command not found.")
|
||||
except Exception as e:
|
||||
bot.logger.warning(f"Error processing commands: {e}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue