Skip to content

Commit

Permalink
Ignore easy-audit pre-save error (#4130)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput authored Aug 5, 2024
1 parent 9cb2eca commit 14595e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bims/utils/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def before_send(event, hint):
logging.info(f"Exception type: {exc_type}")
logging.info(f"Exception value: {exc_value}")

if exc_value and str(exc_value) == "easy audit had a pre-save exception.":
logging.info("Ignoring 'easy audit had a pre-save exception.' error")
return None

if 'easyaudit.signals.model_signals' in str(exc_value):
logging.info("Ignoring easyaudit.signals.model_signals error")
return None
Expand Down

0 comments on commit 14595e7

Please sign in to comment.