mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 12:46:39 +00:00
style: blacked
This commit is contained in:
parent
102f6f1e71
commit
deddabac37
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue