Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 tinyerp#8
- Loading branch information