tfix: value can be None - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 14714899691c84291c642765310af95f3969323e
DIR parent b3a67f7a1f888d6151b36cdab2fc450c8f46e05c
HTML Author: ThomasV <thomasv@electrum.org>
Date: Tue, 13 Feb 2018 09:48:05 +0100
fix: value can be None
Diffstat:
M gui/qt/history_list.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/gui/qt/history_list.py b/gui/qt/history_list.py
t@@ -100,7 +100,7 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop):
balance_str = fx.historical_value_str(balance, date)
entry.append(balance_str)
# fixme: should use is_mine
- if value < 0:
+ if value is not None and value < 0:
cg = self.wallet.capital_gain(tx_hash, fx.timestamp_rate, fx.ccy)
entry.append("%.2f"%cg if cg is not None else _('No data'))
item = QTreeWidgetItem(entry)