diff --git a/swh/web/common/exc.py b/swh/web/common/exc.py --- a/swh/web/common/exc.py +++ b/swh/web/common/exc.py @@ -12,6 +12,7 @@ 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 @@ exceptions.DisallowedHost, exceptions.PermissionDenied, BadInputExc, + NotFoundExc, + AuthenticationFailed, ), ): sentry_sdk.capture_exception(exc)