From deddabac37c92d2843128fae90daa3ece6f92859 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Thu, 19 Dec 2024 05:16:57 +0400 Subject: [PATCH] style: blacked --- .../repositories/users/kanidm_user_repository.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index e7674cb..5dfd16b 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -298,13 +298,17 @@ class KanidmUserRepository(AbstractUserRepository): raise UserNotFound # does it work only for user? elif response_data == "accessdenied": raise KanidmQueryError( - error_text="Kanidm access issue", endpoint=full_endpoint, method=method + error_text="Kanidm access issue", + endpoint=full_endpoint, + method=method, ) elif response_data == "notauthenticated": raise FailedToGetValidKanidmToken logger.error(f"Kanidm query error: {response.text}") - raise KanidmQueryError(error_text=response.text, endpoint=full_endpoint, method=method) + raise KanidmQueryError( + error_text=response.text, endpoint=full_endpoint, method=method + ) return response_data