proviers/saml: fix validation error not being raised

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-07 21:39:30 +02:00
parent f6ab241219
commit 9a8240bdd1
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class SAMLProviderViewSet(UsedByMixin, ModelViewSet):
) )
except ValueError as exc: # pragma: no cover except ValueError as exc: # pragma: no cover
LOGGER.warning(str(exc)) LOGGER.warning(str(exc))
return ValidationError( raise ValidationError(
_("Failed to import Metadata: %(message)s" % {"message": str(exc)}), _("Failed to import Metadata: %(message)s" % {"message": str(exc)}),
) )
return Response(status=204) return Response(status=204)