From dbdf2abf857b48e6cda8a892722e16a3078ec0de Mon Sep 17 00:00:00 2001 From: Platon Floria Date: Wed, 1 May 2024 17:44:03 +0300 Subject: [PATCH] fix: websocket reconnect --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9717e212b..7fe932f64 100644 --- a/main.py +++ b/main.py @@ -351,7 +351,7 @@ async def inner(mgr): ) _run_async_update_with_retries(mgr, current_block=current_block) mgr.pools_to_add_from_contracts = [] - except websockets.exceptions.ConnectionClosed: + except websockets.exceptions.ConnectionClosedError: logger.info("Websocket connection lost. Reconnecting ...") await asyncio.sleep(1)