From 86c9eb48587eb88ebdaa851ca93cae62cb118d99 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 28 Nov 2024 11:16:49 +0100 Subject: [PATCH] psbt_nostr: minor fix --- electrum/plugins/psbt_nostr/qt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/plugins/psbt_nostr/qt.py b/electrum/plugins/psbt_nostr/qt.py index 3b4f4646e..e83bcc278 100644 --- a/electrum/plugins/psbt_nostr/qt.py +++ b/electrum/plugins/psbt_nostr/qt.py @@ -145,7 +145,8 @@ class CosignerWallet(Logger): self.logger.info(f'nostr pubkey: {self.nostr_pubkey}') self.messages = asyncio.Queue() self.taskgroup = OldTaskGroup() - asyncio.run_coroutine_threadsafe(self.main_loop(), self.network.asyncio_loop) + if self.network: + asyncio.run_coroutine_threadsafe(self.main_loop(), self.network.asyncio_loop) @log_exceptions async def main_loop(self):