Browse Source

Reconnect on any OSError.

pull/530/head
Rapptz 8 years ago
parent
commit
c90e52450a
  1. 4
      discord/client.py

4
discord/client.py

@ -386,11 +386,9 @@ class Client:
while not self.is_closed(): while not self.is_closed():
try: try:
yield from self._connect() yield from self._connect()
except (TimeoutError, except (OSError,
HTTPException, HTTPException,
GatewayNotFound, GatewayNotFound,
BlockingIOError,
ConnectionError,
ConnectionClosed, ConnectionClosed,
aiohttp.ClientError, aiohttp.ClientError,
asyncio.TimeoutError, asyncio.TimeoutError,

Loading…
Cancel
Save