From d87d4e716f8e292c48a17c2ac0aed67d66be9b3c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 7 Mar 2017 01:12:28 -0500 Subject: [PATCH] Retry on more exceptions in auto reconnect code. --- discord/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/client.py b/discord/client.py index 6906777e4..6f77c8627 100644 --- a/discord/client.py +++ b/discord/client.py @@ -386,8 +386,11 @@ class Client: while not self.is_closed(): try: yield from self._connect() - except (HTTPException, + except (TimeoutError, + HTTPException, GatewayNotFound, + BlockingIOError, + ConnectionError, ConnectionClosed, aiohttp.ClientError, asyncio.TimeoutError,