Page MenuHomeSoftware Heritage

D7577.diff
No OneTemporary

D7577.diff

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)

File Metadata

Mime Type
text/plain
Expires
Dec 21 2024, 5:38 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3222185

Event Timeline