odooly icon indicating copy to clipboard operation
odooly copied to clipboard

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

Open daniellibonati opened this issue 5 years ago • 1 comments

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

daniellibonati avatar Jan 02 '20 15:01 daniellibonati

@florentx any chance this can get merged?

ivantodorovich avatar Jul 17 '20 14:07 ivantodorovich