[Bugs] #1405 UNSP: should we catch the KeyError in controlpanel/gui.py?

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sun Sep 20 16:20:25 EDT 2009


#1405: should we catch the KeyError in controlpanel/gui.py?
------------------------------------------+---------------------------------
    Reporter:  walter                     |          Owner:  tomeu                      
        Type:  enhancement                |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  0.85.x                     
    Severity:  Unspecified                |       Keywords:  controlpanel               
Distribution:  Ubuntu                     |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 If there is no xklavier module installed there is a KeyError in
 jabare/controlpanel.py

         try:
             import xklavier
         except ImportError:
             del self._options['keyboard']

 self._options doesn't always seem to have a 'keyboard' entry.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1405>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list