Browse Source

Remove unnecessary shielding.

This was causing the exception to be suppressed and print 'NoneType'
instead.
pull/530/head
Rapptz 8 years ago
parent
commit
e749b19131
  1. 2
      discord/client.py

2
discord/client.py

@ -208,7 +208,7 @@ class Client:
pass pass
except Exception: except Exception:
try: try:
yield from asyncio.shield(self.on_error(event_name, *args, **kwargs)) yield from self.on_error(event_name, *args, **kwargs)
except asyncio.CancelledError: except asyncio.CancelledError:
pass pass

Loading…
Cancel
Save