add prusnak suggestion

This commit is contained in:
dni ⚡ 2023-01-04 13:51:18 +01:00
parent 908369efff
commit 4a2b8ab1af

View File

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