From 7383cdc474bdab113a042f2b119cbb344f2f7410 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Sat, 22 Apr 2023 11:40:36 +0200 Subject: [PATCH] qml: don't crash when tx not found on histogram event. closes #8332 --- electrum/gui/qml/qetransactionlistmodel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/qetransactionlistmodel.py b/electrum/gui/qml/qetransactionlistmodel.py index e9ab92526..ea9ae213f 100644 --- a/electrum/gui/qml/qetransactionlistmodel.py +++ b/electrum/gui/qml/qetransactionlistmodel.py @@ -253,7 +253,8 @@ class QETransactionListModel(QAbstractListModel, QtEventListener): continue txid = tx_item['txid'] tx = self.wallet.db.get_transaction(txid) - assert tx is not None + if not tx: + continue txinfo = self.wallet.get_tx_info(tx) status, status_str = self.wallet.get_tx_status(txid, txinfo.tx_mined_status) tx_item['date'] = status_str