mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 02:28:10 +01:00
Fixed exchagerates. I think
This commit is contained in:
parent
7be1859c94
commit
a6de60aab7
@ -244,9 +244,9 @@ async def btc_price(currency: str) -> float:
|
||||
r.raise_for_status()
|
||||
data = r.json()
|
||||
rate = float(provider.getter(data, replacements))
|
||||
await send_channel.send(rate)
|
||||
await send_channel.put(rate)
|
||||
except Exception:
|
||||
await send_channel.send(None)
|
||||
await send_channel.put(None)
|
||||
|
||||
# asyncio.create_task(controller, nursery)
|
||||
for key, provider in exchange_rate_providers.items():
|
||||
|
Loading…
Reference in New Issue
Block a user