Retry on more exceptions in auto reconnect code.
This commit is contained in:
parent
ead18e3948
commit
d87d4e716f
@ -386,8 +386,11 @@ class Client:
|
|||||||
while not self.is_closed():
|
while not self.is_closed():
|
||||||
try:
|
try:
|
||||||
yield from self._connect()
|
yield from self._connect()
|
||||||
except (HTTPException,
|
except (TimeoutError,
|
||||||
|
HTTPException,
|
||||||
GatewayNotFound,
|
GatewayNotFound,
|
||||||
|
BlockingIOError,
|
||||||
|
ConnectionError,
|
||||||
ConnectionClosed,
|
ConnectionClosed,
|
||||||
aiohttp.ClientError,
|
aiohttp.ClientError,
|
||||||
asyncio.TimeoutError,
|
asyncio.TimeoutError,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user