Skip to content

Commit

Permalink
Fix ruff errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanc-me committed Nov 27, 2024
1 parent 671eeb3 commit fa73bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions users_ldap_mail/models/users_ldap_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _map_ldap_attributes(self, conf, login, ldap_entry):
values[value_key] = tools.ustr(ldap_entry[1][conf[conf_name]][0])
except KeyError:
_logger.warning(

Check warning on line 47 in users_ldap_mail/models/users_ldap_model.py

View check run for this annotation

Codecov / codecov/patch

users_ldap_mail/models/users_ldap_model.py#L45-L47

Added lines #L45 - L47 were not covered by tests
'No LDAP attribute "%s" found for login "%s"'
% (conf.get(conf_name), values.get("login"))
f'No LDAP attribute "{conf.get(conf_name)}" found for '
f'login "{values.get("login")}"'
)
return values

Check warning on line 51 in users_ldap_mail/models/users_ldap_model.py

View check run for this annotation

Codecov / codecov/patch

users_ldap_mail/models/users_ldap_model.py#L51

Added line #L51 was not covered by tests

0 comments on commit fa73bb8

Please sign in to comment.