1
0

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'
This commit is contained in:
Sander van Grieken
2023-02-28 14:32:26 +01:00
parent a88c2ced25
commit 7e84aed9c2

View File

@@ -29,7 +29,11 @@ class QEAbstractInvoiceListModel(QAbstractListModel):
self._timer.setSingleShot(True)
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):
return len(self.invoices)