diff --git a/electrum/commands.py b/electrum/commands.py index 812e48e6b..b9b2ecd3a 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -348,7 +348,7 @@ class Commands: def getbalance(self): """Return the balance of your wallet. """ c, u, x = self.wallet.get_balance() - l = self.lnworker.get_balance() + l = self.lnworker.get_balance() if self.lnworker else None out = {"confirmed": str(Decimal(c)/COIN)} if u: out["unconfirmed"] = str(Decimal(u)/COIN)