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