From 0b34523738088e4632987f2af5787db9f307a610 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 592b32d62..9a5c76c49 100644 --- a/main.py +++ b/main.py @@ -353,7 +353,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)