mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-19 00:04:52 -04:00
[MetaSearch]: add error handling for paging workflows
This commit is contained in:
parent
4b4fc6b187
commit
5ab9103acf
@ -626,9 +626,20 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
|||||||
|
|
||||||
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
|
QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
|
||||||
|
|
||||||
|
try:
|
||||||
self.catalog.getrecords2(constraints=self.constraints,
|
self.catalog.getrecords2(constraints=self.constraints,
|
||||||
maxrecords=self.maxrecords,
|
maxrecords=self.maxrecords,
|
||||||
startposition=self.startfrom, esn='full')
|
startposition=self.startfrom, esn='full')
|
||||||
|
except ExceptionReport, err:
|
||||||
|
QApplication.restoreOverrideCursor()
|
||||||
|
QMessageBox.warning(self, self.tr('Search error'),
|
||||||
|
self.tr('Search error: %s') % err)
|
||||||
|
return
|
||||||
|
except Exception, err:
|
||||||
|
QApplication.restoreOverrideCursor()
|
||||||
|
QMessageBox.warning(self, self.tr('Connection error'),
|
||||||
|
self.tr('Connection error: %s') % err)
|
||||||
|
return
|
||||||
|
|
||||||
QApplication.restoreOverrideCursor()
|
QApplication.restoreOverrideCursor()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user