From 9a8240bdd1a0d5f730caf1379968776e163b0910 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 7 Aug 2021 21:39:30 +0200 Subject: [PATCH] proviers/saml: fix validation error not being raised Signed-off-by: Jens Langhammer --- authentik/providers/saml/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/providers/saml/api.py b/authentik/providers/saml/api.py index 9fd9bf592..718bae775 100644 --- a/authentik/providers/saml/api.py +++ b/authentik/providers/saml/api.py @@ -162,7 +162,7 @@ class SAMLProviderViewSet(UsedByMixin, ModelViewSet): ) except ValueError as exc: # pragma: no cover LOGGER.warning(str(exc)) - return ValidationError( + raise ValidationError( _("Failed to import Metadata: %(message)s" % {"message": str(exc)}), ) return Response(status=204)