Skip to content

Commit

Permalink
fix: websocket reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
platonfloria committed May 2, 2024
1 parent c445c11 commit 1423b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1423b02

Please sign in to comment.