Browse Source

qml: log and reraise any exceptions in the constructor of QEAbstractInvoiceListModel, so we

at least see the root cause of the confusing AttributeError: 'QEWallet' object has no attribute 'requestModel'
master
Sander van Grieken 3 years ago
parent
commit
7e84aed9c2
  1. 6
      electrum/gui/qml/qeinvoicelistmodel.py

6
electrum/gui/qml/qeinvoicelistmodel.py

@ -29,7 +29,11 @@ class QEAbstractInvoiceListModel(QAbstractListModel):
self._timer.setSingleShot(True) self._timer.setSingleShot(True)
self._timer.timeout.connect(self.updateStatusStrings) self._timer.timeout.connect(self.updateStatusStrings)
self.init_model() try:
self.init_model()
except Exception as e:
self._logger.error(f'{repr(e)}')
raise e
def rowCount(self, index): def rowCount(self, index):
return len(self.invoices) return len(self.invoices)

Loading…
Cancel
Save