tinyerp / odooly

Python library and CLI to interact with Odoo and OpenERP.
https://odooly.rtfd.io/
Other
60 stars 33 forks source link

[FIX] Use resp.get() to prevent KeyError #9

Open daniellibonati opened 4 years ago

daniellibonati commented 4 years ago

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

ivantodorovich commented 4 years ago

@florentx any chance this can get merged?