Skip to content

Commit

Permalink
Process RetryError in logging
Browse files Browse the repository at this point in the history
Signed-off-by: cyc60 <[email protected]>
  • Loading branch information
cyc60 committed Jan 18, 2024
1 parent 6da768b commit 71d3ca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exits/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 71d3ca7

Please sign in to comment.