Started by adding failing test assertions that demonstrate the problem. Also revealed another error when calling serialize on an error obtained using parse_reply:
def _to_dict(self):
msg = {
'jsonrpc': JSONRPCProtocol.JSON_RPC_VERSION,
'id': self.unique_id,
'error': {
'message': str(self.error),
> 'code': self._jsonrpc_error_code
}
}
E AttributeError: 'JSONRPCErrorResponse' object has no attribute '_jsonrpc_error_code'
This is to follow up on #20 .
Started by adding failing test assertions that demonstrate the problem. Also revealed another error when calling
serialize
on an error obtained usingparse_reply
: