From 41fb14394763b2c7f9339b762d227dfdb343695b Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 13 Nov 2016 23:08:13 +0900 Subject: [PATCH] Fix typo --- lib/jsonrpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jsonrpc.py b/lib/jsonrpc.py index 663b84c..62978f4 100644 --- a/lib/jsonrpc.py +++ b/lib/jsonrpc.py @@ -63,7 +63,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass): def __init__(self, msg, code=-1, **kw_args): super().__init__(**kw_args) self.msg = msg - self.code + self.code = code def __init__(self): @@ -231,7 +231,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass): handler = self.method_handler(method) if not handler: - raise self.RPCError('unknown method: {}'.format(method), + raise self.RPCError('unknown method: "{}"'.format(method), self.METHOD_NOT_FOUND) return await handler(params)