Handle invalid /desktop/sugar/user/color

This is currently breaking the activity list unit test where
the profile has not been initialized. But, more in general,
it seems like we should not be crashing if our settings has
unexpected values.
master
Daniel Narvaez 11 years ago
parent 7ac2cae7c6
commit 7cb4a1d72d

@ -239,7 +239,7 @@ class XoColor:
'fallback to default', color_string)
client = GConf.Client.get_default()
color_string = client.get_string('/desktop/sugar/user/color')
randomize = False
randomize = is_valid(color_string)
else:
randomize = False

Loading…
Cancel
Save