Skip to content

Commit

Permalink
fix: raise AttributeError (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 18, 2023
1 parent becf7a4 commit 41e9c4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions yearn/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def log_exceptions(func: Callable[..., Awaitable[None]]) -> Callable[..., Awaita
async def wrap(*args, **kwargs) -> None:
try:
await func(*args, **kwargs)
except AttributeError as e:
# this implies an issue with our code or that the brownie network failed to connect/has disconnected and the container must restart
raise e
except Exception as e:
logger.exception(e)
if SENTRY_DSN is not None:
Expand Down

0 comments on commit 41e9c4d

Please sign in to comment.