diff options
| author | Rapptz <[email protected]> | 2017-03-07 01:12:28 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-03-07 01:12:28 -0500 |
| commit | d87d4e716f8e292c48a17c2ac0aed67d66be9b3c (patch) | |
| tree | cd4deee5fce4ad74495ba4430aa326aed370efd9 | |
| parent | Fix issue with members not copying correctly. (diff) | |
| download | discord.py-d87d4e716f8e292c48a17c2ac0aed67d66be9b3c.tar.xz discord.py-d87d4e716f8e292c48a17c2ac0aed67d66be9b3c.zip | |
Retry on more exceptions in auto reconnect code.
| -rw-r--r-- | discord/client.py | 5 |
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, |