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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user