From 74f9e7536b30a9c99840b1d301af824a524c340b Mon Sep 17 00:00:00 2001 From: missytake Date: Tue, 12 Dec 2023 15:01:23 +0100 Subject: [PATCH] doveauth: fix logging statement --- chatmaild/src/chatmaild/doveauth.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index 47b1ea69..8a764d33 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -47,8 +47,10 @@ def is_allowed_to_create(config: Config, user, cleartext_password) -> bool: or len(localpart) < config.username_min_length ): logging.warning( - "localpart %s has to be between %s and %s chars long" - % (localpart, config.username_min_length, config.username_max_length) + "localpart %s has to be between %s and %s chars long", + localpart, + config.username_min_length, + config.username_max_length, ) return False