From 61924ac2f63be66ab64b71c34dfecf0fe4488faf Mon Sep 17 00:00:00 2001 From: evgeny-stakewise <123374581+evgeny-stakewise@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:17:00 +0300 Subject: [PATCH] Catch error when pushing signatures (#14) --- src/validators/tasks.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/validators/tasks.py b/src/validators/tasks.py index c6cd1df..f27bce8 100644 --- a/src/validators/tasks.py +++ b/src/validators/tasks.py @@ -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)