From 71d3ca7b5c1de1b99c69448e117297f0f23ae53c Mon Sep 17 00:00:00 2001 From: cyc60 Date: Thu, 18 Jan 2024 17:07:13 +0300 Subject: [PATCH] Process RetryError in logging Signed-off-by: cyc60 --- src/exits/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exits/tasks.py b/src/exits/tasks.py index 96a222a1..95a66472 100644 --- a/src/exits/tasks.py +++ b/src/exits/tasks.py @@ -5,6 +5,7 @@ from aiohttp import ClientError from eth_typing import BlockNumber, BLSPubkey +from tenacity import RetryError from web3 import Web3 from web3.types import HexStr @@ -111,7 +112,7 @@ async def _fetch_outdated_indexes(oracles: Oracles, update_block: BlockNumber | for oracle_endpoint in endpoints: try: response = await get_oracle_outdated_signatures_response(oracle_endpoint) - except ClientError as e: + except (ClientError, RetryError) as e: warning_verbose(str(e)) continue if not update_block or response['exit_signature_block_number'] >= update_block: