Added a common exception that's temporary, to stop getting logged
This commit is contained in:
parent
275f2fad72
commit
84acd50042
3
bot.py
3
bot.py
|
@ -5,6 +5,7 @@ import logging
|
|||
import datetime
|
||||
import pendulum
|
||||
import os
|
||||
import aiohttp
|
||||
|
||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||
|
||||
|
@ -88,6 +89,8 @@ async def on_command_error(error, ctx):
|
|||
return
|
||||
elif isinstance(error.original, discord.HTTPException) and 'empty message' in str(error.original):
|
||||
return
|
||||
elif isinstance(error.original, aiohttp.ClientOSError):
|
||||
return
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue