From e5286f7598d0fb0784bd54529e051a679642f764 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 15 Aug 2019 15:11:15 +0200 Subject: [PATCH] minor fix: always initialize Commands.lnworker --- electrum/commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electrum/commands.py b/electrum/commands.py index b9b2ecd3a..4b4b67abd 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -110,8 +110,7 @@ class Commands: self.wallet = wallet self.network = network self._callback = callback - if self.wallet: - self.lnworker = self.wallet.lnworker + self.lnworker = self.wallet.lnworker if self.wallet else None def _run(self, method, args, password_getter, **kwargs): """This wrapper is called from the Qt python console."""