From 017d96f64ebdef18dc6e11647f9aba93e7dddf90 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 5 Mar 2025 22:00:05 +1100 Subject: [PATCH] Ignore sentry for TemplateSyntaxError (#9239) - Getting flodded with reports of users misapplied template filters --- src/backend/InvenTree/InvenTree/sentry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/InvenTree/InvenTree/sentry.py b/src/backend/InvenTree/InvenTree/sentry.py index a2a018da5f..926a447b1b 100644 --- a/src/backend/InvenTree/InvenTree/sentry.py +++ b/src/backend/InvenTree/InvenTree/sentry.py @@ -3,6 +3,7 @@ from django.conf import settings from django.core.exceptions import ValidationError from django.http import Http404 +from django.template.exceptions import TemplateSyntaxError import rest_framework.exceptions import sentry_sdk @@ -28,6 +29,7 @@ def sentry_ignore_errors(): return [ Http404, MissingRate, + TemplateSyntaxError, ValidationError, rest_framework.exceptions.AuthenticationFailed, rest_framework.exceptions.NotAuthenticated,