proviers/saml: fix validation error not being raised
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user