[Pkg-sugar-commit] [sugar-toolkit] 05/07: The activity icon does not handle the case of a activity without metadata.
Jonas Smedegaard
dr at jones.dk
Thu Apr 16 18:52:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v0.92.1
in repository sugar-toolkit.
commit a883557ee1d79990eed64da89bd03d4b1dba1c58
Author: Gonzalo Odiard <godiard at sugarlabs.org>
Date: Thu Mar 31 20:21:19 2011 +0000
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 at activitycentral.com>
---
src/sugar/activity/widgets.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py
index b5e4ce7..7166d3e 100644
--- a/src/sugar/activity/widgets.py
+++ b/src/sugar/activity/widgets.py
@@ -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()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-toolkit.git
More information about the pkg-sugar-commit
mailing list