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.
This commit is contained in:
Daniel Narvaez
2013-04-09 18:06:13 +02:00
parent 7ac2cae7c6
commit 7cb4a1d72d
+1 -1
View File
@@ -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