Skip to content

Commit

Permalink
🐛 Return tuple, not generator
Browse files Browse the repository at this point in the history
  • Loading branch information
TuringTux committed Oct 20, 2024
1 parent 4c92cd0 commit 03bf70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taiga_contrib_ldap_auth_ext/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 03bf70c

Please sign in to comment.