mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-28 12:56:16 +02:00
try-catch in pay_invoice on global lnurl-withdraw.
This commit is contained in:
@@ -153,7 +153,10 @@ async def lnurl_full_withdraw_callback():
|
|||||||
pr = request.args.get("pr")
|
pr = request.args.get("pr")
|
||||||
|
|
||||||
async def pay():
|
async def pay():
|
||||||
await pay_invoice(wallet_id=wallet.id, payment_request=pr)
|
try:
|
||||||
|
await pay_invoice(wallet_id=wallet.id, payment_request=pr)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
current_app.nursery.start_soon(pay)
|
current_app.nursery.start_soon(pay)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user