aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-25 03:30:49 -0400
committerRapptz <[email protected]>2017-03-25 03:30:49 -0400
commite749b191314ea133408c0a90345f43215d1bb407 (patch)
tree06b331dfd59033d0dac39fa4a1ffcf57aba8da82
parentMake Role.members use a list comprehension. (diff)
downloaddiscord.py-e749b191314ea133408c0a90345f43215d1bb407.tar.xz
discord.py-e749b191314ea133408c0a90345f43215d1bb407.zip
Remove unnecessary shielding.
This was causing the exception to be suppressed and print 'NoneType' instead.
-rw-r--r--discord/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index f00824ec..dca01a4e 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