From 005b4d8dda26c98957a63b03d88dd68480e2a006 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 4 Feb 2021 20:36:05 +0100 Subject: [PATCH] sources/ldap: fix linting issues --- authentik/sources/ldap/sync/membership.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authentik/sources/ldap/sync/membership.py b/authentik/sources/ldap/sync/membership.py index 72f9c8e12..3444f3e63 100644 --- a/authentik/sources/ldap/sync/membership.py +++ b/authentik/sources/ldap/sync/membership.py @@ -52,7 +52,9 @@ class MembershipLDAPSynchronizer(BaseLDAPSynchronizer): def get_group(self, group_dict: dict[str, Any]) -> Optional[Group]: """Check if we fetched the group already, and if not cache it for later""" - group_uniq = group_dict.get("attributes", {}).get(self._source.object_uniqueness_field, "") + group_uniq = group_dict.get("attributes", {}).get( + self._source.object_uniqueness_field, "" + ) group_dn = group_dict.get("attributes", {}).get(LDAP_DISTINGUISHED_NAME, "") if group_uniq not in self.group_cache: groups = Group.objects.filter(