From d58de5482634422e1ccd122a5e35c93906b8d141 Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:18:26 -0800 Subject: [PATCH] PHX: Catch NPE and other exceptions when getting a fresh PHX market. --- .../main/java/com/mmorrell/phoenix/manager/PhoenixManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phoenix/src/main/java/com/mmorrell/phoenix/manager/PhoenixManager.java b/phoenix/src/main/java/com/mmorrell/phoenix/manager/PhoenixManager.java index 7e4e995..3200fbf 100644 --- a/phoenix/src/main/java/com/mmorrell/phoenix/manager/PhoenixManager.java +++ b/phoenix/src/main/java/com/mmorrell/phoenix/manager/PhoenixManager.java @@ -74,7 +74,7 @@ public Optional getMarket(PublicKey marketId, boolean useCache) { ); return Optional.of(phoenixMarket); - } catch (RpcException e) { + } catch (Exception e) { log.error("Unable to retrieve phoenix market {}", marketId); return Optional.empty(); }