From 99710099fb3566b2c4c1a976e8cf79d431ad56db Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 21 Feb 2018 20:57:45 +0100 Subject: [PATCH] fix #3952 --- lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index 3bfd3c08c..e12b401f5 100644 --- 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)