Return false instead of exception on failed deleteEnr JSON-RPC (#1706)

This commit is contained in:
Kim De Mey 2023-08-23 21:04:17 +02:00 committed by GitHub
parent 0105e3e8cf
commit 745ca026fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)