(fix) handle the access to the dictionary

This commit is contained in:
cardosofede
2022-10-11 15:40:41 -03:00
parent 7c5d6bd153
commit 0b5f46dc86

View File

@@ -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()