This commit is contained in:
monosans 2023-10-06 10:51:41 +03:00
parent c5ad22c45b
commit f87be092a5
No known key found for this signature in database

View file

@ -150,7 +150,7 @@ async def get_crypto_price(cryptocurrency: str) -> float:
"""Gets the price of a cryptocurrency using coinbase's API.""" """Gets the price of a cryptocurrency using coinbase's API."""
try: try:
async with aiofiles.open(os.path.join('cache', 'crypto_prices')) as f: async with aiofiles.open(os.path.join('cache', 'crypto_prices.json')) as f:
content = await f.read() content = await f.read()
except FileNotFoundError: except FileNotFoundError:
cache = {} cache = {}