joshmarshall/jsonrpclib — pull request #14 by drdaeman (2012-03-14 09:47:50+00:00)
Title: Support talking to legacy JSON-RPC 1.0 servers

I've needed to talk to legacy JSON-RPC 1.0 server and found that there's no library on PyPi that could readily do it.

- Errors are not handled properly, but raise `KeyError` exception (see issue #13);
- In JSON-RPC 1.0 `params` are mandatory, even if empty (see [this commit in alanbriolat/jsonrpclib](https://github.com/alanbriolat/jsonrpclib/commit/f72d8a46b639555cbe5b5ab83d57e147eae759aa) fork).

Here are quick fixes, which I hope could be merged. Error handling modifications should not affect working with any compliant 1.1+ server, but only more eagerly accept possible 1.0 oddities.

Thanks.