From 4b4efcd8f3d9f976571c01a194eed02acbd613f3 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Sat, 18 Nov 2023 05:06:56 +0000 Subject: [PATCH] fix: transient 429 err at startup --- yearn/sentry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yearn/sentry.py b/yearn/sentry.py index 3fb0a73d2..f513c0815 100644 --- a/yearn/sentry.py +++ b/yearn/sentry.py @@ -8,6 +8,7 @@ from threading import current_thread from typing import Awaitable, Callable +import eth_retry import sentry_sdk.client from brownie import chain, web3 from sentry_sdk import Hub, capture_message, init, push_scope, set_tag, utils @@ -26,6 +27,7 @@ def before_send(event, hint): # NOTE: We can't add our tag logic here because this is not called in the same thread where the Exception occurred. return event +@eth_retry.auto_retry def set_custom_tags(): set_tag("chain_id", chain.id) set_tag("network", Network(chain.id).name())