minor fix: always initialize Commands.lnworker

This commit is contained in:
ThomasV 2019-08-15 15:11:15 +02:00
parent 5e0427392f
commit e5286f7598

View file

@ -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."""