Return false instead of exception on failed deleteEnr JSON-RPC (#1706)
This commit is contained in:
parent
0105e3e8cf
commit
745ca026fe
|
@ -71,7 +71,7 @@ proc installPortalApiHandlers*(
|
||||||
p.routingTable.removeNode(node.get())
|
p.routingTable.removeNode(node.get())
|
||||||
return true
|
return true
|
||||||
else:
|
else:
|
||||||
raise newException(ValueError, "Record not in local routing table.")
|
return false
|
||||||
|
|
||||||
rpcServer.rpc("portal_" & network & "LookupEnr") do(nodeId: NodeId) -> Record:
|
rpcServer.rpc("portal_" & network & "LookupEnr") do(nodeId: NodeId) -> Record:
|
||||||
let lookup = await p.resolve(nodeId)
|
let lookup = await p.resolve(nodeId)
|
||||||
|
|
Loading…
Reference in New Issue