Skip to content

Commit

Permalink
don't flood sentry when DB is down
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 2, 2017
1 parent f03c4cc commit 0674b4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions liberapay/wireup.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ def tell_sentry(exception, state, allow_reraise=True):
# Only log server errors
return

if isinstance(exception, NeedDatabase):
# Don't flood Sentry when DB is down
return

if not sentry:
if env.sentry_reraise and allow_reraise:
raise
Expand Down

0 comments on commit 0674b4a

Please sign in to comment.