From c90e52450adb063f2b50fbc24da4c74e326e5058 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 20 Mar 2017 15:45:44 -0400 Subject: [PATCH] Reconnect on any OSError. --- discord/client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/discord/client.py b/discord/client.py index 2f2da0437..8ba5b7b33 100644 --- a/discord/client.py +++ b/discord/client.py @@ -386,11 +386,9 @@ class Client: while not self.is_closed(): try: yield from self._connect() - except (TimeoutError, + except (OSError, HTTPException, GatewayNotFound, - BlockingIOError, - ConnectionError, ConnectionClosed, aiohttp.ClientError, asyncio.TimeoutError,