[Sugar-devel] [PATCH] The activity icon does not handle the case of a activity without metadata.

Sascha Silbe sascha-ml-reply-to-2011-2 at silbe.org
Thu Mar 31 08:56:45 EDT 2011


Excerpts from Gonzalo Odiard's message of Wed Mar 30 19:22:43 +0200 2011:

> +    if metadata is not None and metadata.get('icon-color', ''):

We can drop the second parameter of the get(). The default is None which
will be evaluated as False, like the empty string did.


Acked-by: Sascha Silbe <silbe at activitycentral.com>


Thanks for the patch!

Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 500 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110331/78908a49/attachment.pgp>


More information about the Sugar-devel mailing list