(trivial) fix getbalance

This commit is contained in:
ThomasV 2019-08-15 11:22:12 +02:00
parent b81feb6550
commit 28b1569f28

View file

@ -348,7 +348,7 @@ class Commands:
def getbalance(self): def getbalance(self):
"""Return the balance of your wallet. """ """Return the balance of your wallet. """
c, u, x = self.wallet.get_balance() 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)} out = {"confirmed": str(Decimal(c)/COIN)}
if u: if u:
out["unconfirmed"] = str(Decimal(u)/COIN) out["unconfirmed"] = str(Decimal(u)/COIN)