From b0d4f035f1cfff82c5bec669e13e8f4294262de2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 21 Oct 2022 22:12:59 +0200 Subject: [PATCH] blueprints: fix error when cleaning up unset attribute 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 21f3c929c..7ce8251e3 100644 --- a/authentik/blueprints/v1/common.py +++ b/authentik/blueprints/v1/common.py @@ -63,7 +63,7 @@ class BlueprintEntry: all_attrs = get_attrs(model) for extra_identifier_name in extra_identifier_names: - identifiers[extra_identifier_name] = all_attrs.pop(extra_identifier_name) + identifiers[extra_identifier_name] = all_attrs.pop(extra_identifier_name, None) return BlueprintEntry( identifiers=identifiers, model=f"{model._meta.app_label}.{model._meta.model_name}",