2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Ignore sentry for TemplateSyntaxError (#9239) (#9241)

- Getting flodded with reports of users misapplied template filters

(cherry picked from commit 017d96f64e)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]
2025-03-05 22:01:12 +11:00
committed by GitHub
parent b18ac57fb8
commit 1ae27a6b77

View File

@ -5,6 +5,7 @@ import logging
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
@ -29,6 +30,7 @@ def sentry_ignore_errors():
return [
Http404,
MissingRate,
TemplateSyntaxError,
ValidationError,
rest_framework.exceptions.AuthenticationFailed,
rest_framework.exceptions.NotAuthenticated,