Merge pull request #443 from lnbits/fastapi_fix_lndrestwallet_fee_limit

(FastAPI) LNDRest fee limit
This commit is contained in:
Arc
2021-11-30 09:04:01 +00:00
committed by GitHub
3 changed files with 31 additions and 9 deletions
+2
View File
@@ -172,6 +172,8 @@ async def pay_invoice(
)
await delete_payment(temp_id, conn=conn)
else:
async with db.connect() as conn:
await delete_payment(temp_id, conn=conn)
raise PaymentFailure(
payment.error_message
or "Payment failed, but backend didn't give us an error message."