Skip to content

Commit

Permalink
PHX: Catch NPE and other exceptions when getting a fresh PHX market.
Browse files Browse the repository at this point in the history
  • Loading branch information
skynetcap committed Dec 9, 2023
1 parent e31aad5 commit d58de54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public Optional<PhoenixMarket> 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();
}
Expand Down

0 comments on commit d58de54

Please sign in to comment.