electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 8bfe34277257d975b791df89e93545923df5c726
parent 0f16bcdc1ff5cda748f3079d7efd983b426277fb
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 14 Feb 2018 13:55:01 +0100

minor fixes

Diffstat:
Mlib/wallet.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1011,9 +1011,11 @@ class Abstract_Wallet(PrintError): cg = None if lp is None or ap is None else lp - ap item['acquisition_price'] = fx.format_fiat(ap) item['capital_gain'] = fx.format_fiat(cg) - capital_gains += cg + if cg is not None: + capital_gains += cg else: - fiat_income += fiat_value + if fiat_value is not None: + fiat_income += fiat_value out.append(item) if from_timestamp and to_timestamp: