Browse Source

qml: don't crash when tx not found on histogram event. closes #8332

master
Sander van Grieken 3 years ago
parent
commit
7383cdc474
  1. 3
      electrum/gui/qml/qetransactionlistmodel.py

3
electrum/gui/qml/qetransactionlistmodel.py

@ -253,7 +253,8 @@ class QETransactionListModel(QAbstractListModel, QtEventListener):
continue continue
txid = tx_item['txid'] txid = tx_item['txid']
tx = self.wallet.db.get_transaction(txid) tx = self.wallet.db.get_transaction(txid)
assert tx is not None if not tx:
continue
txinfo = self.wallet.get_tx_info(tx) txinfo = self.wallet.get_tx_info(tx)
status, status_str = self.wallet.get_tx_status(txid, txinfo.tx_mined_status) status, status_str = self.wallet.get_tx_status(txid, txinfo.tx_mined_status)
tx_item['date'] = status_str tx_item['date'] = status_str

Loading…
Cancel
Save