From 6ed68a59087003c9a4de37e195d79a689fca436a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Tue, 24 Sep 2024 15:17:47 +0200 Subject: [PATCH] fixup --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 533124e..61df747 100644 --- a/tasks.py +++ b/tasks.py @@ -18,7 +18,7 @@ async def wait_for_paid_invoices(): async def on_invoice_paid(payment: Payment) -> None: - if payment.extra.get("tag") != "lncalendar": + if not payment.extra or payment.extra.get("tag") != "lncalendar": # not a lncalendar invoice return