From 0b5f46dc866c0ef9f2ed51d179856bdd9ff849ea Mon Sep 17 00:00:00 2001 From: cardosofede Date: Tue, 11 Oct 2022 15:40:41 -0300 Subject: [PATCH] (fix) handle the access to the dictionary --- utils/miner_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/miner_utils.py b/utils/miner_utils.py index 5ad0f6e..0a5faf1 100644 --- a/utils/miner_utils.py +++ b/utils/miner_utils.py @@ -28,7 +28,7 @@ class MinerUtils: "gateio": "gate", "ascendex": "bitmax" } - return converter[exchange] + return converter.get(exchange, None) def get_miner_stats_df(self): miner_data = requests.get(self.MARKETS_ENDPOINT).json()