Ignore:
Timestamp:
11/14/12 12:40:34 (18 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Show a messagebox when an add-on action fails, don't just print a message into the output window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/orngDlgs.py

    r11021 r11023  
    845845                Orange.utils.addons.upgrade(name, self.pcb) 
    846846            except Exception, e: 
    847                 print "Problem upgrading add-on %s: %s" % (name, e) 
     847                QMessageBox.critical(self, "Error", "Problem upgrading add-on %s: %s" % (name, e)) 
    848848        for name in remove: 
    849849            try: 
     
    852852                Orange.utils.addons.uninstall(name, self.pcb) 
    853853            except Exception, e: 
    854                 print "Problem uninstalling add-on %s: %s" % (name, e) 
     854                QMessageBox.critical(self, "Error", "Problem uninstalling add-on %s: %s" % (name, e)) 
    855855        for name in add: 
    856856            try: 
     
    859859                Orange.utils.addons.install(name, self.pcb) 
    860860            except Exception, e: 
    861                 print "Problem installing add-on %s: %s" % (name, e) 
     861                QMessageBox.critical(self, "Error", "Problem installing add-on %s: %s" % (name, e)) 
    862862 
    863863        QDialog.accept(self) 
Note: See TracChangeset for help on using the changeset viewer.