fix: some extra checks
This commit is contained in:
parent
8d2008074e
commit
0d2b2cdd79
1 changed files with 4 additions and 1 deletions
5
tasks.py
5
tasks.py
|
|
@ -27,6 +27,9 @@ async def wait_for_paid_invoices():
|
|||
|
||||
|
||||
async def on_invoice_paid(payment: Payment):
|
||||
if not payment.extra:
|
||||
return
|
||||
|
||||
if payment.extra.get("tag") != "lnurlp":
|
||||
return
|
||||
|
||||
|
|
@ -108,7 +111,7 @@ async def mark_webhook_sent(
|
|||
|
||||
# NIP-57 - load the zap request
|
||||
async def send_zap(payment: Payment):
|
||||
nostr = payment.extra.get("nostr")
|
||||
nostr = payment.extra.get("nostr") if payment.extra else None
|
||||
if not nostr:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue