mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 12:11:26 +00:00
fix: change return type
This commit is contained in:
parent
997b88d4c8
commit
0f92452ee8
|
@ -31,15 +31,16 @@ class KanidmUserRepository(AbstractUserRepository):
|
|||
"Content-Type": "application/json",
|
||||
},
|
||||
timeout=0.8, # TODO: change timeout
|
||||
verify=False,
|
||||
verify=False, # TODO: REMOVE THIS NOTHALAL!!!!!
|
||||
)
|
||||
|
||||
if response.status_code != 200:
|
||||
raise KanidmQueryError(
|
||||
f"Kanidm returned {response.status_code} unexpected HTTP status code. Endpoint: {full_endpoint}. Error: {response.text}."
|
||||
)
|
||||
json = response.json()
|
||||
return json["data"]
|
||||
# json = response.json()
|
||||
# return json["data"]
|
||||
return response.json()
|
||||
|
||||
except Exception as error:
|
||||
raise KanidmQueryError(f"Kanidm request failed! Error: {str(error)}")
|
||||
|
|
Loading…
Reference in a new issue