From 645619bac8b7869793f82cd810a7760f7333e291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dipl=2E=20Ing=2E=20P=C3=A9ter=20Varkoly?= Date: Tue, 17 Sep 2024 09:33:31 +0200 Subject: [PATCH] Fix format string --- radicale/auth/ldap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radicale/auth/ldap.py b/radicale/auth/ldap.py index 95f977c6..23355d37 100644 --- a/radicale/auth/ldap.py +++ b/radicale/auth/ldap.py @@ -107,7 +107,7 @@ class Auth(auth.BaseAuth): pass if not conn.bind(): - logger.debug(f"_login3 can not bind") + logger.debug("_login3 can not bind") raise RuntimeError("Unable to read from ldap server") logger.debug(f"_login3 bind as {self._ldap_reader_dn}") @@ -119,7 +119,7 @@ class Auth(auth.BaseAuth): attributes=['memberOf'] ) if len(conn.entries) == 0: - logger.debug(f"_login3 user can not be find") + logger.debug(f"_login3 user '{login}' can not be find") """User could not be find""" return "" @@ -131,7 +131,7 @@ class Auth(auth.BaseAuth): """Try to bind as the user itself""" conn = self.ldap3.Connection(server, user_dn, password=password) if not conn.bind(): - logger.debug(f"_login3 user can not be find") + logger.debug(f"_login3 user '{login}' can not be find") return "" if self._ldap_load_groups: tmp = []