From 745ca026fede23a6d9ac66bd8904c151710d6048 Mon Sep 17 00:00:00 2001 From: Kim De Mey Date: Wed, 23 Aug 2023 21:04:17 +0200 Subject: [PATCH] Return false instead of exception on failed deleteEnr JSON-RPC (#1706) --- fluffy/rpc/rpc_portal_api.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluffy/rpc/rpc_portal_api.nim b/fluffy/rpc/rpc_portal_api.nim index 85929da8e..c468f325c 100644 --- a/fluffy/rpc/rpc_portal_api.nim +++ b/fluffy/rpc/rpc_portal_api.nim @@ -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)