Skip to content
Snippets Groups Projects
Verified Commit 6561e392 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make log string more precise

parent 30e05b0d
No related branches found
No related tags found
1 merge request!28Resolve "Allow match of users to persons by other fields in AlekSIS and LDAP"
Pipeline #4334 failed
...@@ -159,9 +159,9 @@ def get_ldap_value_for_field(model, field, attrs, dn, instance=None, allow_missi ...@@ -159,9 +159,9 @@ def get_ldap_value_for_field(model, field, attrs, dn, instance=None, allow_missi
return value return value
else: else:
if allow_missing: 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: 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 @transaction.atomic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment