aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-20 15:45:44 -0400
committerRapptz <[email protected]>2017-03-20 15:45:44 -0400
commitc90e52450adb063f2b50fbc24da4c74e326e5058 (patch)
tree1847518dc1929a03c2ccacfcd24b009f778f5c2d
parentRemoving acking on channels. (diff)
downloaddiscord.py-c90e52450adb063f2b50fbc24da4c74e326e5058.tar.xz
discord.py-c90e52450adb063f2b50fbc24da4c74e326e5058.zip
Reconnect on any OSError.
-rw-r--r--discord/client.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/discord/client.py b/discord/client.py
index 2f2da043..8ba5b7b3 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,