aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-07 01:12:28 -0500
committerRapptz <[email protected]>2017-03-07 01:12:28 -0500
commitd87d4e716f8e292c48a17c2ac0aed67d66be9b3c (patch)
treecd4deee5fce4ad74495ba4430aa326aed370efd9
parentFix issue with members not copying correctly. (diff)
downloaddiscord.py-d87d4e716f8e292c48a17c2ac0aed67d66be9b3c.tar.xz
discord.py-d87d4e716f8e292c48a17c2ac0aed67d66be9b3c.zip
Retry on more exceptions in auto reconnect code.
-rw-r--r--discord/client.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 6906777e..6f77c862 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,