Skip to content

Commit

Permalink
fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
harisang committed Oct 18, 2023
1 parent 7262bc6 commit a509276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/coingeckoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_token_price_in_usd(self, address: str) -> Optional[float]:
timeout=REQUEST_TIMEOUT,
)
coingecko_rsp = coingecko_data.json()
coingecko_price_in_usd = coingecko_rsp[address]["usd"]
coingecko_price_in_usd = float(coingecko_rsp[address]["usd"])
except requests.RequestException as err:
self.logger.warning(
f"Connection error while fetching Coingecko price for token {address}, error: {err}"
Expand Down

0 comments on commit a509276

Please sign in to comment.