Skip to content

Commit 8150aef

Browse files
committed
Fix ruff errors
1 parent aa3a242 commit 8150aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

users_ldap_mail/models/users_ldap_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _map_ldap_attributes(self, conf, login, ldap_entry):
4545
values[value_key] = tools.ustr(ldap_entry[1][conf[conf_name]][0])
4646
except KeyError:
4747
_logger.warning(
48-
'No LDAP attribute "%s" found for login "%s"'
49-
% (conf.get(conf_name), values.get("login"))
48+
f'No LDAP attribute "{conf.get(conf_name)}" found for '
49+
f'login "{values.get("login")}"'
5050
)
5151
return values

0 commit comments

Comments
 (0)