Browse Source

Only return exception in Client.run when it's not cancelled.

pull/2240/head
Rapptz 6 years ago
parent
commit
8f691ae775
  1. 3
      discord/client.py

3
discord/client.py

@ -594,7 +594,8 @@ class Client:
log.info('Cleaning up tasks.')
_cleanup_loop(loop)
return future.result()
if not future.cancelled():
return future.result()
# properties

Loading…
Cancel
Save