From 5f441eee4b64b299550cea4a544ff59438d8295b Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Sat, 18 Nov 2023 16:00:13 -0500 Subject: [PATCH] fix: transient 429 err at startup (#676) --- yearn/sentry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yearn/sentry.py b/yearn/sentry.py index e236fc9fe..a8572ee1f 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())