diff options
| author | Rapptz <[email protected]> | 2017-03-20 15:45:44 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-03-20 15:45:44 -0400 |
| commit | c90e52450adb063f2b50fbc24da4c74e326e5058 (patch) | |
| tree | 1847518dc1929a03c2ccacfcd24b009f778f5c2d | |
| parent | Removing acking on channels. (diff) | |
| download | discord.py-c90e52450adb063f2b50fbc24da4c74e326e5058.tar.xz discord.py-c90e52450adb063f2b50fbc24da4c74e326e5058.zip | |
Reconnect on any OSError.
| -rw-r--r-- | discord/client.py | 4 |
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, |