mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-30 12:46: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", {})
|
||||
if plugin_error.get("attrunique") == "duplicate value detected":
|
||||
raise UserAlreadyExists # TODO only user ?
|
||||
if isinstance(response_data, str):
|
||||
if response_data == "nomatchingentries":
|
||||
raise UserNotFound
|
||||
|
||||
raise KanidmQueryError(error_text=response.text)
|
||||
|
||||
if isinstance(response_data, str):
|
||||
if response_data == "nomatchingentries":
|
||||
raise UserNotFound
|
||||
|
||||
return response_data
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in a new issue