From b2f247bef341ecabfec2857c4e555ba7c4c84ca9 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 20 Jun 2019 23:00:45 -0400 Subject: [PATCH] Propagate exception in Client.run Fix #2237 --- discord/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/client.py b/discord/client.py index b7a77f3d5..3f32a511a 100644 --- a/discord/client.py +++ b/discord/client.py @@ -594,6 +594,8 @@ class Client: log.info('Cleaning up tasks.') _cleanup_loop(loop) + return future.result() + # properties def is_closed(self):