From 32aee2d45a9ba642d3244a93ba0804784d5a5ac9 Mon Sep 17 00:00:00 2001 From: jerryfletcher21 Date: Fri, 5 Jul 2024 16:44:57 +0200 Subject: [PATCH] small fix in get_exchange_rates 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 13fad5b0..66658db2 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)