From 35d37e63283a000605552a2692e6905fdde72fc8 Mon Sep 17 00:00:00 2001 From: jerry Date: Sun, 7 Jul 2024 11:15:54 +0000 Subject: [PATCH] small fix in get_exchange_rates (#1365) While running tests, the print(e) was printing an annoying list of currencies. Removing it it is also more coherent with the other currencies providers below. --- api/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/utils.py b/api/utils.py index 13fad5b07..66658db2b 100644 --- a/api/utils.py +++ b/api/utils.py @@ -188,8 +188,7 @@ def get_exchange_rates(currencies): blockchain_rates.append( float(blockchain_prices[currency]["last"]) ) - except Exception as e: - print(e) + except Exception: blockchain_rates.append(np.nan) api_rates.append(blockchain_rates)