From aba0bad30c29feb181e284a6410319a1a42b20e1 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 20 Mar 2021 09:10:48 +0100 Subject: [PATCH] lnwatcher: try_redeem must return if tx is None --- electrum/lnwatcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py index 6eaa55899..4c69cb12b 100644 --- a/electrum/lnwatcher.py +++ b/electrum/lnwatcher.py @@ -432,6 +432,7 @@ class LNWalletWatcher(LNWatcher): tx = sweep_info.gen_tx() if tx is None: self.logger.info(f'{name} could not claim output: {prevout}, dust') + return self.lnworker.wallet.set_label(tx.txid(), name) if broadcast: await self.network.try_broadcasting(tx, name)