| 55 | log = logging.getLogger("LuxRPC") |
| 56 | |
| 57 | class JSONRPCException(Exception): |
| 58 | def __init__(self, rpc_error): |
| 59 | try: |
| 60 | errmsg = '%(message)s (%(code)i)' % rpc_error |
| 61 | except (KeyError, TypeError): |
| 62 | errmsg = '' |
| 63 | Exception.__init__(self, errmsg) |
| 64 | self.error = rpc_error |
| 65 | |
| 66 | |
| 67 | def EncodeDecimal(o): |
no outgoing calls
no test coverage detected