mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 02:23:04 +00:00
Only return exception in Client.run when it's not cancelled.
This commit is contained in:
@@ -594,6 +594,7 @@ class Client:
|
|||||||
log.info('Cleaning up tasks.')
|
log.info('Cleaning up tasks.')
|
||||||
_cleanup_loop(loop)
|
_cleanup_loop(loop)
|
||||||
|
|
||||||
|
if not future.cancelled():
|
||||||
return future.result()
|
return future.result()
|
||||||
|
|
||||||
# properties
|
# properties
|
||||||
|
|||||||
Reference in New Issue
Block a user