From 28b1569f28b2d21ebb2c428e5f1b35c6ca8a7c3b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 15 Aug 2019 11:22:12 +0200 Subject: [PATCH] (trivial) fix getbalance --- electrum/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)