mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Only return exception in Client.run when it's not cancelled.
This commit is contained in:
parent
b2f247bef3
commit
8f691ae775
@ -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…
x
Reference in New Issue
Block a user