Merge pull request #4 from dnarvaez/no-color

Handle invalid /desktop/sugar/user/color

Acked-by: Manuel Quiñones <manuq@dev.laptop.org>
This commit is contained in:
manuq 2013-04-09 12:25:17 -07:00
commit 9ef961cc94

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