diff --git a/aleksis/apps/ldap/util/ldap_sync.py b/aleksis/apps/ldap/util/ldap_sync.py index e62686d49879f70efe2f66335b44e8e9de5760b1..381794e5c4b0d2958939bcb27fcfd3f6077be5de 100644 --- a/aleksis/apps/ldap/util/ldap_sync.py +++ b/aleksis/apps/ldap/util/ldap_sync.py @@ -159,9 +159,9 @@ def get_ldap_value_for_field(model, field, attrs, dn, instance=None, allow_missi return value else: if allow_missing: - logger.warn(f"Matching field {ldap_field} not in attributes of {dn}") + logger.warn(f"Field {ldap_field} not in attributes of {dn}") else: - raise KeyError(f"Matching field {ldap_field} not in attributes of {dn}") + raise KeyError(f"Field {ldap_field} not in attributes of {dn}") @transaction.atomic