id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,distribution,status_field 4475,del of none-existant option entry causes controlpanel to crash,walter,erikos,"Ignacio stumbled across this problem with the Sugar control panel. Using sugar-emulator on F18 (perhaps with some missing dependency) sr/jarabe/controlpanel/gui.py crashes when trying to delete 'power' from self._options when it is not present. Same is true for 'keyboard'. With the proper dependencies (sugar-cp and xklavier) loaded, the problem goes away. But the code could be more robust. A simple solution would be to add a check before del, e.g., - del self._options['power'] + if 'power' in self._options: + del self._options['power'] and - del self._options['keyboard'] + if 'keyboard' in self._options: + del self._options['keyboard'] Log attached",defect,closed,Unspecified by Maintainer,Unspecified,Sugar,Unspecified,Unspecified,fixed,,,Unspecified,Unconfirmed