Fix typo
This commit is contained in:
parent
e2b00ce267
commit
41fb143947
@ -63,7 +63,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass):
|
|||||||
def __init__(self, msg, code=-1, **kw_args):
|
def __init__(self, msg, code=-1, **kw_args):
|
||||||
super().__init__(**kw_args)
|
super().__init__(**kw_args)
|
||||||
self.msg = msg
|
self.msg = msg
|
||||||
self.code
|
self.code = code
|
||||||
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -231,7 +231,7 @@ class JSONRPC(asyncio.Protocol, LoggedClass):
|
|||||||
|
|
||||||
handler = self.method_handler(method)
|
handler = self.method_handler(method)
|
||||||
if not handler:
|
if not handler:
|
||||||
raise self.RPCError('unknown method: {}'.format(method),
|
raise self.RPCError('unknown method: "{}"'.format(method),
|
||||||
self.METHOD_NOT_FOUND)
|
self.METHOD_NOT_FOUND)
|
||||||
|
|
||||||
return await handler(params)
|
return await handler(params)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user