From b0563240f7fcdb30785712f7b79d430b22bc8051 Mon Sep 17 00:00:00 2001 From: Sandro Lutz Date: Sun, 19 Nov 2023 00:30:19 +0100 Subject: [PATCH] Fix flake8 issues --- amivapi/auth/sessions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/amivapi/auth/sessions.py b/amivapi/auth/sessions.py index 52d01536..ec0c1136 100644 --- a/amivapi/auth/sessions.py +++ b/amivapi/auth/sessions.py @@ -189,12 +189,12 @@ def process_login(items): user = _find_user(ldap_username) if user: app.logger.error( - f"User '{ldap_username}' authenticated with LDAP and found " - "in db, but LDAP sync failed.") + f"User '{ldap_username}' authenticated with LDAP and " + "found in db, but LDAP sync failed.") else: - status = (f"Login failed: user '{ldap_username}' authenticated " - "with LDAP but not found in db, and LDAP sync " - "failed.") + status = (f"Login failed: user '{ldap_username}' " + "authenticated with LDAP but not found in db, " + "and LDAP sync failed.") app.logger.error(status) abort(401, description=debug_error_message(status))