From 59efae0bfc29f9ade08e0ecb13dab7af03cff7ed Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 16 Oct 2023 14:37:13 +1100 Subject: [PATCH] Sentry: ignore NotAuthenticated errors (#5702) - Causes a lot of unnecessary error reports --- InvenTree/InvenTree/sentry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/InvenTree/sentry.py b/InvenTree/InvenTree/sentry.py index 5c2c01b238..49957adc0a 100644 --- a/InvenTree/InvenTree/sentry.py +++ b/InvenTree/InvenTree/sentry.py @@ -31,6 +31,7 @@ def sentry_ignore_errors(): Http404, ValidationError, rest_framework.exceptions.AuthenticationFailed, + rest_framework.exceptions.NotAuthenticated, rest_framework.exceptions.PermissionDenied, rest_framework.exceptions.ValidationError, ]