odooly
odooly copied to clipboard
[FIX] Use resp.get() to prevent KeyError
Whenever a JSON RPC call returns None
, the result
key in the response will not exist, and therefore it will trigger a KeyError. By using get(), None is returned if the the 'result' key does not exist.
Fixes #8
@florentx any chance this can get merged?