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 <silbe@activitycentral.com>
This commit is contained in:
parent
17e52db2b6
commit
35cb4e3881
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user