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())
|
||||
return true
|
||||
else:
|
||||
raise newException(ValueError, "Record not in local routing table.")
|
||||
return false
|
||||
|
||||
rpcServer.rpc("portal_" & network & "LookupEnr") do(nodeId: NodeId) -> Record:
|
||||
let lookup = await p.resolve(nodeId)
|
||||
|
|
Loading…
Reference in New Issue