mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-13 18:33:26 +00:00
Remove unnecessary shielding.
This was causing the exception to be suppressed and print 'NoneType' instead.
This commit is contained in:
1 parent
fde35848f6
commit
e749b19131
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user