URI: 
       tminor fixes - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 8bfe34277257d975b791df89e93545923df5c726
   DIR parent 0f16bcdc1ff5cda748f3079d7efd983b426277fb
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed, 14 Feb 2018 13:55:01 +0100
       
       minor fixes
       
       Diffstat:
         M lib/wallet.py                       |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -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: