loguru warnings (#751)

This commit is contained in:
calle
2022-07-17 22:25:37 +02:00
committed by GitHub
parent c8ab2859fd
commit f4580955b9
3 changed files with 3 additions and 3 deletions

View File

@@ -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)