mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 22:33: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."""
|
"""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 = {}
|
||||||
|
|
Loading…
Reference in a new issue