File tree 1 file changed +14
-3
lines changed
python/plugins/MetaSearch/dialogs
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -626,9 +626,20 @@ def navigate(self):
626
626
627
627
QApplication .setOverrideCursor (QCursor (Qt .WaitCursor ))
628
628
629
- self .catalog .getrecords2 (constraints = self .constraints ,
630
- maxrecords = self .maxrecords ,
631
- startposition = self .startfrom , esn = 'full' )
629
+ try :
630
+ self .catalog .getrecords2 (constraints = self .constraints ,
631
+ maxrecords = self .maxrecords ,
632
+ startposition = self .startfrom , esn = 'full' )
633
+ except ExceptionReport , err :
634
+ QApplication .restoreOverrideCursor ()
635
+ QMessageBox .warning (self , self .tr ('Search error' ),
636
+ self .tr ('Search error: %s' ) % err )
637
+ return
638
+ except Exception , err :
639
+ QApplication .restoreOverrideCursor ()
640
+ QMessageBox .warning (self , self .tr ('Connection error' ),
641
+ self .tr ('Connection error: %s' ) % err )
642
+ return
632
643
633
644
QApplication .restoreOverrideCursor ()
634
645
You can’t perform that action at this time.
0 commit comments