mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 22:47:05 +01:00
loguru warnings (#751)
This commit is contained in:
parent
c8ab2859fd
commit
f4580955b9
3 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,7 @@ async def redeem_lnurl_withdraw(
|
||||||
conn=conn,
|
conn=conn,
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
logger.warn(
|
logger.warning(
|
||||||
f"failed to create invoice on redeem_lnurl_withdraw from {lnurl}. params: {res}"
|
f"failed to create invoice on redeem_lnurl_withdraw from {lnurl}. params: {res}"
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
|
|
@ -395,7 +395,7 @@ async def api_payment(payment_hash, X_Api_Key: Optional[str] = Header(None)):
|
||||||
wallet = None
|
wallet = None
|
||||||
try:
|
try:
|
||||||
if X_Api_Key.extra:
|
if X_Api_Key.extra:
|
||||||
logger.warn("No key")
|
logger.warning("No key")
|
||||||
except:
|
except:
|
||||||
wallet = await get_wallet_for_key(X_Api_Key)
|
wallet = await get_wallet_for_key(X_Api_Key)
|
||||||
payment = await get_standalone_payment(
|
payment = await get_standalone_payment(
|
||||||
|
|
|
@ -281,7 +281,7 @@ async def btc_price(currency: str) -> float:
|
||||||
if not rates:
|
if not rates:
|
||||||
return 9999999999
|
return 9999999999
|
||||||
elif len(rates) == 1:
|
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)
|
return sum([rate for rate in rates]) / len(rates)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue