1
0
Fork 0
mirror of synced 2024-06-15 00:54:34 +12:00

Stopped the error for sending an empty message from logging

This commit is contained in:
phxntxm 2016-11-01 14:28:47 -05:00
parent 48f5a0c262
commit 32f34e4c8d

2
bot.py
View file

@ -83,6 +83,8 @@ async def on_command_error(error, ctx):
try:
if isinstance(error.original, discord.Forbidden):
return
elif isinstance(error.original, discord.HTTPException) and 'empty message' in str(error.original):
return
except AttributeError:
pass