Changeset 273 for trunk/uigtk.py


Ignore:
Timestamp:
07/28/09 00:47:59 (9 years ago)
Author:
marc
Message:

Better error handling for Py.2.6 and twisted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uigtk.py

    r271 r273  
    11501150            self.server.start_server(self.configuration['server']['port']) 
    11511151        except error.ItakaServerErrorCannotListen, e: 
    1152             self.log.failure(('Gui', 'start_server'), (_('Failed to start server'), _('Failed to start server: %s') % (e)), 'ERROR') 
     1152            self.log.failure(('Gui', 'start_server'), (_('Failed to start server: %s' % e.value), _('Failed to start server: %s') % e.value), 'ERROR') 
    11531153            self.button_start_stop.set_active(False) 
    11541154            return 
     
    11561156        self.server.add_log_observer(self.log.twisted_observer) 
    11571157 
    1158         if self.configuration['server']['authentication']: 
     1158        if self.configuration['server']['authytentication']: 
    11591159            serverstock = 'STOCK_DIALOG_AUTHENTICATION' 
    11601160            serverstring = _('Secure server') 
Note: See TracChangeset for help on using the changeset viewer.