Skip to content

Commit

Permalink
small fix in get_exchange_rates (#1365)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jerryfletcher21 committed Jul 7, 2024
1 parent 62c16c0 commit 35d37e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 35d37e6

Please sign in to comment.