From 8f691ae77598d094d8efb5c94a2794123dff1875 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 20 Jun 2019 23:04:38 -0400 Subject: [PATCH] Only return exception in Client.run when it's not cancelled. --- discord/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 3f32a511a..e48045942 100644 --- a/discord/client.py +++ b/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