mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-07 00:20:37 +00:00
fix: delete block try except in wrong place
This commit is contained in:
parent
62098493c4
commit
63ea78b1ef
|
@ -146,6 +146,8 @@ class KanidmUserRepository(AbstractUserRepository):
|
|||
timeout=0.8, # TODO: change timeout
|
||||
verify=False, # TODO: REMOVE THIS NOTHALAL!!!!!
|
||||
)
|
||||
except Exception as error:
|
||||
raise KanidmQueryError(f"Kanidm request failed! Error: {str(error)}")
|
||||
|
||||
logger.info(str(response))
|
||||
response_data = response.json()
|
||||
|
@ -167,9 +169,6 @@ class KanidmUserRepository(AbstractUserRepository):
|
|||
else:
|
||||
raise KanidmReturnEmptyResponse
|
||||
|
||||
except Exception as error:
|
||||
raise KanidmQueryError(f"Kanidm request failed! Error: {str(error)}")
|
||||
|
||||
# nomatchingentries
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in a new issue