1
0
Fork 0
mirror of synced 2024-05-17 19:12:33 +12:00

Added a common exception that's temporary, to stop getting logged

This commit is contained in:
Phxntxm 2017-02-12 16:40:28 -06:00
parent 275f2fad72
commit 84acd50042

3
bot.py
View file

@ -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