From 50a53aaedc61c11417b4b8aa66085ef0a1583370 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 22 Jan 2024 13:30:46 +0100 Subject: [PATCH] qml: handle 2fa wallet can have None for billing_info --- electrum/gui/qml/qewallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/qewallet.py b/electrum/gui/qml/qewallet.py index 194b27fd2..30a839a09 100644 --- a/electrum/gui/qml/qewallet.py +++ b/electrum/gui/qml/qewallet.py @@ -338,7 +338,9 @@ class QEWallet(AuthMixin, QObject, QtEventListener): billingInfoChanged = pyqtSignal() @pyqtProperty('QVariantMap', notify=billingInfoChanged) def billingInfo(self): - return {} if self.wallet.wallet_type != '2fa' else self.wallet.billing_info + if self.wallet.wallet_type != '2fa': + return {} + return self.wallet.billing_info if self.wallet.billing_info is not None else {} @pyqtProperty(bool, notify=dataChanged) def canHaveLightning(self):