Handle an additionalexception type here
This commit is contained in:
1 parent
b8cba528b5
commit
98f5f7bc69
1 file changed
+5
-1
+5
-1
@@ -121,7 +121,11 @@ class Websocket:
|
|||||||
async with session.ws_connect(ws_url, ssl=True, proxy=proxy) as websocket:
|
async with session.ws_connect(ws_url, ssl=True, proxy=proxy) as websocket:
|
||||||
yield websocket
|
yield websocket
|
||||||
backoff.reset()
|
backoff.reset()
|
||||||
except (aiohttp.ClientConnectionError, asyncio.TimeoutError):
|
except (
|
||||||
|
asyncio.TimeoutError,
|
||||||
|
aiohttp.ClientResponseError,
|
||||||
|
aiohttp.ClientConnectionError,
|
||||||
|
):
|
||||||
ws_logger.info(
|
ws_logger.info(
|
||||||
f"Websocket[{self._idx}] connection problem (sleep: {delay:.3}s)",
|
f"Websocket[{self._idx}] connection problem (sleep: {delay:.3}s)",
|
||||||
exc_info=True,
|
exc_info=True,
|
||||||
|
|||||||
Reference in new issue
Block a user