mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 18:11:30 +01:00
add prusnak suggestion
This commit is contained in:
parent
908369efff
commit
4a2b8ab1af
@ -20,7 +20,9 @@ async def wait_for_paid_invoices():
|
||||
|
||||
|
||||
async def on_invoice_paid(payment: Payment) -> None:
|
||||
if not payment.extra or payment.extra.get("tag") != "tpos":
|
||||
if not payment.extra:
|
||||
return
|
||||
if payment.extra.get("tag") != "tpos":
|
||||
return
|
||||
|
||||
tipAmount = payment.extra.get("tipAmount")
|
||||
|
Loading…
Reference in New Issue
Block a user