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

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Sep 22 07:45:38 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:  Needinfo                   
------------------------------------------+---------------------------------
Description changed by sascha_silbe:

Old description:

> 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.

New description:

 If there is no xklavier module installed there is a !KeyError in
 jarabe/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#comment:3>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list