From 03bf70ccb083e50f6f0d474833219b000d2f1e86 Mon Sep 17 00:00:00 2001 From: TuringTux Date: Sun, 20 Oct 2024 21:55:19 +0200 Subject: [PATCH] :bug: Return tuple, not generator --- taiga_contrib_ldap_auth_ext/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taiga_contrib_ldap_auth_ext/connector.py b/taiga_contrib_ldap_auth_ext/connector.py index fd5fa2b..ebdcafb 100644 --- a/taiga_contrib_ldap_auth_ext/connector.py +++ b/taiga_contrib_ldap_auth_ext/connector.py @@ -147,7 +147,7 @@ def _extract_profile(user: Any) -> Tuple[str, str, str]: if not raw_attributes.get(attribute): raise LDAPUserLoginError({"error_message": "LDAP login is invalid."}) - return ( + return tuple( raw_attributes.get(attribute)[0].decode("utf-8") for attribute in PROFILE_ATTRIBUTES )