Reconnect on any OSError.
This commit is contained in:
parent
4ffded622a
commit
c90e52450a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user