From b2032b0a6660f8f20a186837fe0470196a83078e Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 27 Nov 2016 20:21:52 +0900 Subject: [PATCH] Fix 2 JSON RPC issues --- lib/jsonrpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jsonrpc.py b/lib/jsonrpc.py index ee416e0..23bcd93 100644 --- a/lib/jsonrpc.py +++ b/lib/jsonrpc.py @@ -277,7 +277,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass): except RCPError: pass else: - self.handle_notification(method, params) + await self.handle_notification(method, params) return None async def json_request(self, message): @@ -297,7 +297,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass): await self.handle_response(message['result'], None, message['id']) return None - def raise_unknown_method(method): + def raise_unknown_method(self, method): '''Respond to a request with an unknown method.''' raise self.RPCError('unknown method: "{}"'.format(method), self.METHOD_NOT_FOUND)