commit 28b1569f28b2d21ebb2c428e5f1b35c6ca8a7c3b
parent b81feb655043aba16b539b097ade76021f8cb665
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 15 Aug 2019 11:22:12 +0200
(trivial) fix getbalance
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)