From e749b191314ea133408c0a90345f43215d1bb407 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 25 Mar 2017 03:30:49 -0400 Subject: [PATCH] Remove unnecessary shielding. This was causing the exception to be suppressed and print 'NoneType' instead. --- discord/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index f00824ec6..dca01a4ea 100644 --- a/discord/client.py +++ b/discord/client.py @@ -208,7 +208,7 @@ class Client: pass except Exception: try: - yield from asyncio.shield(self.on_error(event_name, *args, **kwargs)) + yield from self.on_error(event_name, *args, **kwargs) except asyncio.CancelledError: pass