Reconnect on any OSError.

This commit is contained in:
Rapptz 2017-03-20 15:45:44 -04:00
parent 4ffded622a
commit c90e52450a

View File

@ -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,