From 7b197b2f295362844593668e180b43badd0a9ff4 Mon Sep 17 00:00:00 2001
From: Gonzalo Odiard <godiard@sugarlabs.org>
Date: Wed, 30 Mar 2011 14:19:50 -0300
Subject: [PATCH] The activity icon does not handle the case of a activity without metadata. - SL #2743
If the activity is initiated with create_object=False
Acked-by: Sascha Silbe <silbe@activitycentral.com>
---
src/sugar/activity/widgets.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py
index b5e4ce7..ef23032 100644
a
|
b
|
_ = lambda msg: gettext.dgettext('sugar-toolkit', msg) |
34 | 34 | |
35 | 35 | |
36 | 36 | def _create_activity_icon(metadata): |
37 | | if metadata.get('icon-color', ''): |
| 37 | if metadata is not None and metadata.get('icon-color'): |
38 | 38 | color = XoColor(metadata['icon-color']) |
39 | 39 | else: |
40 | 40 | client = gconf.client_get_default() |