Skip to content
Snippets Groups Projects
Commit 8b919bc4 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

common/exc: Filter out more exceptions to not report to sentry

Those are not backend bugs and are not of interest in sentry reports.
parent bb3d953b
No related branches found
No related tags found
1 merge request!794common/exc: Filter out more exceptions to not report to sentry
......@@ -12,6 +12,7 @@ from django.core import exceptions
from django.shortcuts import render
from django.utils.html import escape
from django.utils.safestring import mark_safe
from rest_framework.exceptions import AuthenticationFailed
from swh.web.config import get_config
......@@ -137,6 +138,8 @@ def sentry_capture_exception(exc):
exceptions.DisallowedHost,
exceptions.PermissionDenied,
BadInputExc,
NotFoundExc,
AuthenticationFailed,
),
):
sentry_sdk.capture_exception(exc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment