From 3f570bb96d90a49543fc876a9a168e20ae2a0677 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 21 Oct 2022 20:18:02 +0200 Subject: [PATCH] blueprints: improve error handling Signed-off-by: Jens Langhammer --- authentik/blueprints/v1/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/blueprints/v1/common.py b/authentik/blueprints/v1/common.py index 8eb020998..21f3c929c 100644 --- a/authentik/blueprints/v1/common.py +++ b/authentik/blueprints/v1/common.py @@ -139,7 +139,7 @@ class KeyOf(YAMLTag): ): return _entry._state.instance.pbm_uuid return _entry._state.instance.pk - raise ValueError( + raise EntryInvalidError( f"KeyOf: failed to find entry with `id` of `{self.id_from}` and a model instance" )