mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 20:56:39 +00:00
fix: mv nomatchingentries
This commit is contained in:
parent
6d6583ced6
commit
924218b6aa
|
@ -165,12 +165,13 @@ class KanidmUserRepository(AbstractUserRepository):
|
||||||
plugin_error = response_data.get("plugin", {})
|
plugin_error = response_data.get("plugin", {})
|
||||||
if plugin_error.get("attrunique") == "duplicate value detected":
|
if plugin_error.get("attrunique") == "duplicate value detected":
|
||||||
raise UserAlreadyExists # TODO only user ?
|
raise UserAlreadyExists # TODO only user ?
|
||||||
|
|
||||||
|
raise KanidmQueryError(error_text=response.text)
|
||||||
|
|
||||||
if isinstance(response_data, str):
|
if isinstance(response_data, str):
|
||||||
if response_data == "nomatchingentries":
|
if response_data == "nomatchingentries":
|
||||||
raise UserNotFound
|
raise UserNotFound
|
||||||
|
|
||||||
raise KanidmQueryError(error_text=response.text)
|
|
||||||
|
|
||||||
return response_data
|
return response_data
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in a new issue