prusnak's suggestion

This commit is contained in:
Tiago Vasconcelos 2023-01-04 11:28:43 +00:00
parent 491495aa8a
commit 7328d222a0

View File

@ -23,7 +23,10 @@ async def wait_for_paid_invoices():
async def on_invoice_paid(payment: Payment) -> None:
if payment.extra and payment.extra.get("tag") != "shop":
if not payment.extra:
return
if payment.extra.get("tag") != "shop":
return
order = await get_shop_order_invoiceid(payment.payment_hash)