From 1ac63b5fac6951cfbf64a8df8c428a7db40ea22c Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Thu, 22 Oct 2020 23:27:51 +0300 Subject: [PATCH] Try/catch for exchange rates fetching --- apps/explorer/lib/explorer/exchange_rates/source.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/explorer/lib/explorer/exchange_rates/source.ex b/apps/explorer/lib/explorer/exchange_rates/source.ex index 9dfb5cf682..20422a0b33 100644 --- a/apps/explorer/lib/explorer/exchange_rates/source.ex +++ b/apps/explorer/lib/explorer/exchange_rates/source.ex @@ -41,6 +41,8 @@ defmodule Explorer.ExchangeRates.Source do {:error, :nxdomain} -> {:error, "CoinGecko is not responsive"} end + after + {:error, ""} end @doc """