From 94517fbc0effc42382faab8382bc167f3e877b9b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 3 Jun 2025 10:26:25 +0200 Subject: [PATCH] lnworker: minor fix, follow-up fc4f995668035d0e7f0f2e6314cf6efedba5f55d --- electrum/lnworker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 537859fef..5f402695d 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -2643,7 +2643,7 @@ class LNWallet(LNWorker): self.logger.info(f"received unknown htlc_failed, probably from previous session (phash={payment_hash.hex()})") key = payment_hash.hex() invoice = self.wallet.get_invoice(key) - if self.get_invoice_status(invoice) != PR_UNPAID: + if invoice and self.get_invoice_status(invoice) != PR_UNPAID: self.set_invoice_status(key, PR_UNPAID) util.trigger_callback('payment_failed', self.wallet, key, '')