From 398eb23d31022fbab9bb9a05a4b2d91ee8794ef0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 31 Aug 2022 23:08:38 +0200 Subject: [PATCH] blueprint: fix EntryInvalidError not being handled in tasks Signed-off-by: Jens Langhammer --- authentik/blueprints/v1/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/authentik/blueprints/v1/tasks.py b/authentik/blueprints/v1/tasks.py index 793b50ae2..873186c68 100644 --- a/authentik/blueprints/v1/tasks.py +++ b/authentik/blueprints/v1/tasks.py @@ -18,7 +18,7 @@ from authentik.blueprints.models import ( BlueprintInstanceStatus, BlueprintRetrievalFailed, ) -from authentik.blueprints.v1.common import BlueprintLoader, BlueprintMetadata +from authentik.blueprints.v1.common import BlueprintLoader, BlueprintMetadata, EntryInvalidError from authentik.blueprints.v1.importer import Importer from authentik.blueprints.v1.labels import LABEL_AUTHENTIK_INSTANTIATE from authentik.events.monitored_tasks import ( @@ -168,6 +168,7 @@ def apply_blueprint(self: MonitoredTask, instance_pk: str): InternalError, IOError, BlueprintRetrievalFailed, + EntryInvalidError, ) as exc: instance.status = BlueprintInstanceStatus.ERROR self.set_status(TaskResult(TaskResultStatus.ERROR).with_error(exc))