mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
rpc: do not crash when unable to parse JSON
When unable to parse JSON response from the server, properly raise JSONError not to cause a crash. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
@@ -1078,7 +1078,7 @@ class JSONServerProxy(object):
|
||||
try:
|
||||
response = json_decode_binary(json.loads(response.decode('ascii')))
|
||||
except ValueError as e:
|
||||
raise JSONError(str(e))
|
||||
raise JSONError(error=str(e))
|
||||
|
||||
if self.__verbose >= 2:
|
||||
root_logger.info(
|
||||
|
||||
Reference in New Issue
Block a user