mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Clean up unused code
This commit is contained in:
parent
9e9b75a42e
commit
d20b710034
1 changed files with 0 additions and 9 deletions
|
@ -89,18 +89,9 @@ class JSONRPCDaemon(object):
|
||||||
if 'error' in result:
|
if 'error' in result:
|
||||||
err = result['error']
|
err = result['error']
|
||||||
_log.error(u"JSON RPC error:\n{result}".format(result=_ppresult))
|
_log.error(u"JSON RPC error:\n{result}".format(result=_ppresult))
|
||||||
# if err['code'] in _err2exc:
|
|
||||||
# raise _err2exc[err['code']](err['message'])
|
|
||||||
# else:
|
|
||||||
# raise RPCError(
|
|
||||||
# "Method '{method}' failed with RPC Error of unknown code {code}, "
|
|
||||||
# "message: {message}".format(method=method, data=data, result=result, **err))
|
|
||||||
raise RPCError(
|
raise RPCError(
|
||||||
"Method '{method}' failed with RPC Error of unknown code {code}, "
|
"Method '{method}' failed with RPC Error of unknown code {code}, "
|
||||||
"message: {message}".format(method=method, data=data, result=result, **err))
|
"message: {message}".format(method=method, data=data, result=result, **err))
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
return result['result']
|
return result['result']
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue