The activity icon does not handle the case of a activity without metadata.

If the activity is initiated with create_object=False

Acked-by: Sascha Silbe <[email protected]>
This commit is contained in:
Gonzalo Odiard
2011-04-03 17:19:54 +02:00
committed by Sascha Silbe
parent 17e52db2b6
commit 35cb4e3881
+1 -1
View File
@@ -34,7 +34,7 @@ _ = lambda msg: gettext.dgettext('sugar-toolkit', msg)
def _create_activity_icon(metadata):
if metadata.get('icon-color', ''):
if metadata is not None and metadata.get('icon-color'):
color = XoColor(metadata['icon-color'])
else:
client = gconf.client_get_default()