mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 20:56:39 +00:00
notfix: remove try
This commit is contained in:
parent
13dbfd7c02
commit
7ade8f8d01
|
@ -120,7 +120,7 @@ class KanidmUserRepository(AbstractUserRepository):
|
||||||
request_method = getattr(requests, method.lower(), None)
|
request_method = getattr(requests, method.lower(), None)
|
||||||
full_endpoint = f"{KANIDM_URL}/v1/{endpoint}"
|
full_endpoint = f"{KANIDM_URL}/v1/{endpoint}"
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
response = request_method(
|
response = request_method(
|
||||||
full_endpoint,
|
full_endpoint,
|
||||||
json=data,
|
json=data,
|
||||||
|
@ -138,8 +138,8 @@ class KanidmUserRepository(AbstractUserRepository):
|
||||||
)
|
)
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
||||||
except Exception as error:
|
# except Exception as error:
|
||||||
raise KanidmQueryError(f"Kanidm request failed! Error: {str(error)}")
|
# raise KanidmQueryError(f"Kanidm request failed! Error: {str(error)}")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_user(
|
def create_user(
|
||||||
|
|
Loading…
Reference in a new issue