From f5358170069034786a0294e5cdbb52dd0276d123 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 14 May 2025 12:48:47 +0200 Subject: [PATCH] psbt_nostr: qml: don't let iterator overwrite param --- electrum/plugins/psbt_nostr/qml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/plugins/psbt_nostr/qml.py b/electrum/plugins/psbt_nostr/qml.py index caf48328e..5922eae28 100644 --- a/electrum/plugins/psbt_nostr/qml.py +++ b/electrum/plugins/psbt_nostr/qml.py @@ -105,8 +105,8 @@ class Plugin(PsbtNostrPlugin): @hook def load_wallet(self, wallet: 'Abstract_Wallet'): # remove existing, only foreground wallet active - for wallet in self.cosigner_wallets.copy().keys(): - self.remove_cosigner_wallet(wallet) + for _wallet in self.cosigner_wallets.copy().keys(): + self.remove_cosigner_wallet(_wallet) if not isinstance(wallet, Multisig_Wallet): return if wallet.wallet_type == '2fa':