Skip to content

Commit

Permalink
Catch error when pushing signatures (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-stakewise authored Oct 23, 2024
1 parent 5f39961 commit 61924ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/validators/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ async def poll_exits_and_push_signatures(keystore: BaseKeystore, share_index: in

# push exit signature shares to Relayer
if public_key_to_exit_signature:
await relayer.push_exit_signatures(
session, public_key_to_exit_signature, share_index
)
try:
await relayer.push_exit_signatures(
session, public_key_to_exit_signature, share_index
)
except (ClientError, asyncio.TimeoutError) as e:
logger.error_verbose('Failed to push exit signatures: %s', e)

await asyncio.sleep(settings.poll_interval)

Expand Down

0 comments on commit 61924ac

Please sign in to comment.