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

This commit is contained in:
Rapptz 2019-06-20 23:04:38 -04:00
parent b2f247bef3
commit 8f691ae775

View File

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