notfix: remove try

This commit is contained in:
dettlaff 2024-11-22 23:18:33 +04:00
parent 13dbfd7c02
commit 7ade8f8d01

View file

@ -120,7 +120,7 @@ class KanidmUserRepository(AbstractUserRepository):
request_method = getattr(requests, method.lower(), None)
full_endpoint = f"{KANIDM_URL}/v1/{endpoint}"
try:
# try:
response = request_method(
full_endpoint,
json=data,
@ -138,8 +138,8 @@ class KanidmUserRepository(AbstractUserRepository):
)
return response.json()
except Exception as error:
raise KanidmQueryError(f"Kanidm request failed! Error: {str(error)}")
# except Exception as error:
# raise KanidmQueryError(f"Kanidm request failed! Error: {str(error)}")
@staticmethod
def create_user(