From dec0875e10d44ceced18f461deeb89c405a78de9 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 15 Jul 2017 18:00:41 -0500 Subject: [PATCH] Add Unkown Message to ignored errors --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 4b2a463..d4f28bb 100644 --- a/bot.py +++ b/bot.py @@ -83,7 +83,8 @@ async def on_command_error(ctx, error): elif isinstance(error.original, discord.HTTPException) and ( 'empty message' in str(error.original) or 'INTERNAL SERVER ERROR' in str(error.original) or - 'REQUEST ENTITY TOO LARGE' in str(error.original)): + 'REQUEST ENTITY TOO LARGE' in str(error.original) or + 'Unknown Message' in str(error.original)): return elif isinstance(error.original, aiohttp.ClientOSError): return