Skip to content

Commit

Permalink
fix: transient 429 err at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Nov 18, 2023
1 parent 5a54b9d commit cdd7ed1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yearn/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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())
Expand Down

0 comments on commit cdd7ed1

Please sign in to comment.