mirror of
https://github.com/lnbits/lnbits.git
synced 2025-12-11 05:01:38 +01:00
loguru warnings (#751)
This commit is contained in:
@@ -281,7 +281,7 @@ async def btc_price(currency: str) -> float:
|
||||
if not rates:
|
||||
return 9999999999
|
||||
elif len(rates) == 1:
|
||||
logger.warn("Could only fetch one Bitcoin price.")
|
||||
logger.warning("Could only fetch one Bitcoin price.")
|
||||
|
||||
return sum([rate for rate in rates]) / len(rates)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user