Open daniellibonati opened 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.
None
result
Fixes #8
@florentx any chance this can get merged?
Whenever a JSON RPC call returns
None
, theresult
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