mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 20:13:57 +01:00
oops
This commit is contained in:
parent
c5ad22c45b
commit
f87be092a5
|
@ -150,7 +150,7 @@ async def get_crypto_price(cryptocurrency: str) -> float:
|
|||
"""Gets the price of a cryptocurrency using coinbase's API."""
|
||||
|
||||
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()
|
||||
except FileNotFoundError:
|
||||
cache = {}
|
||||
|
|
Loading…
Reference in a new issue