electrum

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

commit 99710099fb3566b2c4c1a976e8cf79d431ad56db
parent b7b592fd6eb59049896ec644bdfb86cc7bf1685b
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 21 Feb 2018 20:57:45 +0100

fix #3952

Diffstat:
Mlib/wallet.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1027,7 +1027,7 @@ class Abstract_Wallet(PrintError): fiat_default = False item['fiat_value'] = Fiat(fiat_value, fx.ccy) item['fiat_default'] = fiat_default - if value < 0: + if value is not None and value < 0: ap, lp = self.capital_gain(tx_hash, fx.timestamp_rate, fx.ccy) cg = lp - ap item['acquisition_price'] = Fiat(ap, fx.ccy)