From 65bc28056c05f17983de9cd0c67d2a053e29114f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 10 Jun 2025 14:48:20 +0000 Subject: [PATCH] plugins: psbt_nostr: trivial rename pycharm static analyser was getting confused and thinking this line was rebinding "_" from i18n._ (but AFAICT that's a bug in the static analyser) --- electrum/plugins/psbt_nostr/psbt_nostr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/plugins/psbt_nostr/psbt_nostr.py b/electrum/plugins/psbt_nostr/psbt_nostr.py index e3d34208c..b084c0e41 100644 --- a/electrum/plugins/psbt_nostr/psbt_nostr.py +++ b/electrum/plugins/psbt_nostr/psbt_nostr.py @@ -193,7 +193,7 @@ class CosignerWallet(Logger): if event.id in self.known_events: self.logger.info(f'known event {event.id} {util.age(event.created_at)}') continue - if not any(event.pubkey == pubkey for _, pubkey in self.cosigner_list): + if not any(event.pubkey == pubkey for _xpub, pubkey in self.cosigner_list): self.logger.warning(f"got event from unknown author: {event.pubkey}") continue if event.created_at > now() + self.KEEP_DELAY: