Skip to content
Permalink
Browse files

[MetaSearch]: add error handling for paging workflows

  • Loading branch information
tomkralidis committed Feb 27, 2015
1 parent 4b4fc6b commit 5ab9103acff9ed016cbeb9871891c11c9c6055a8
Showing with 14 additions and 3 deletions.
  1. +14 −3 python/plugins/MetaSearch/dialogs/maindialog.py
@@ -626,9 +626,20 @@ def navigate(self):

QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))

self.catalog.getrecords2(constraints=self.constraints,
maxrecords=self.maxrecords,
startposition=self.startfrom, esn='full')
try:
self.catalog.getrecords2(constraints=self.constraints,
maxrecords=self.maxrecords,
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()

0 comments on commit 5ab9103

Please sign in to comment.
You can’t perform that action at this time.