Beispiel #1
0
 def interpreter_died(self, controller, returncode):
     if not self.shutting_down and controller.current_command is not None:
         error_dialog(
             self,
             _('Interpreter died'),
             _('Interpreter dies while executing a command. To see '
               'the command, click Show details'),
             det_msg=controller.current_command,
             show=True)
Beispiel #2
0
 def interpreter_died(self, controller, returncode):
     if not self.shutting_down and controller.current_command is not None:
         error_dialog(
             self,
             _("Interpreter died"),
             _("Interpreter dies while executing a command. To see " "the command, click Show details"),
             det_msg=controller.current_command,
             show=True,
         )
Beispiel #3
0
 def unhandled_exception(self, type, value, tb):
     if type == KeyboardInterrupt:
         return
     try:
         sio = StringIO.StringIO()
         traceback.print_exception(type, value, tb, file=sio)
         fe = sio.getvalue()
         prints(fe)
         try:
             val = unicode(value)
         except:
             val = repr(value)
         msg = "<b>%s</b>:" % type.__name__ + val
         error_dialog(self, _("ERROR: Unhandled exception"), msg, det_msg=fe, show=True)
     except BaseException:
         pass
 def unhandled_exception(self, type, value, tb):
     if type == KeyboardInterrupt:
         return
     try:
         sio = StringIO.StringIO()
         traceback.print_exception(type, value, tb, file=sio)
         fe = sio.getvalue()
         prints(fe)
         try:
             val = unicode(value)
         except:
             val = repr(value)
         msg = '<b>%s</b>:'%type.__name__ + val
         error_dialog(self, _('ERROR: Unhandled exception'), msg,
                 det_msg=fe, show=True)
     except BaseException:
         pass
Beispiel #5
0
 def no_controller_error(self):
     error_dialog(self, _('No interpreter'),
             _('No active interpreter found. Try restarting the'
                 ' console'), show=True)
 def no_controller_error(self):
     error_dialog(self, _('No interpreter'),
             _('No active interpreter found. Try restarting the'
                 ' console'), show=True)