From 84acd500421209df6dd3159d5c05088dec6d00f8 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 12 Feb 2017 16:40:28 -0600 Subject: [PATCH] Added a common exception that's temporary, to stop getting logged --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index 8501ada..55e2187 100644 --- a/bot.py +++ b/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