style: blacked

This commit is contained in:
dettlaff 2024-12-19 05:16:57 +04:00
parent 102f6f1e71
commit deddabac37

View file

@ -298,13 +298,17 @@ class KanidmUserRepository(AbstractUserRepository):
raise UserNotFound # does it work only for user? raise UserNotFound # does it work only for user?
elif response_data == "accessdenied": elif response_data == "accessdenied":
raise KanidmQueryError( 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": elif response_data == "notauthenticated":
raise FailedToGetValidKanidmToken raise FailedToGetValidKanidmToken
logger.error(f"Kanidm query error: {response.text}") 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 return response_data