Silently catch internal server errors
This commit is contained in:
parent
6ab89c1ba5
commit
7525bd1927
2
bot.py
2
bot.py
|
@ -80,7 +80,7 @@ async def on_command_error(ctx, error):
|
|||
try:
|
||||
if isinstance(error.original, discord.Forbidden):
|
||||
return
|
||||
elif isinstance(error.original, discord.HTTPException) and 'empty message' in str(error.original):
|
||||
elif isinstance(error.original, discord.HTTPException) and ('empty message' in str(error.original) or 'INTERNAL SERVER ERROR' in str(error.original)):
|
||||
return
|
||||
elif isinstance(error.original, aiohttp.ClientOSError):
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue