From abec4df66ec2433249185ce8a046e33a60c20acb Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 19 May 2007 11:19:56 +0200 Subject: [PATCH] Don't try to display an icon without file name. --- sugar/graphics/canvasicon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/graphics/canvasicon.py b/sugar/graphics/canvasicon.py index 14f83519..ec141d0c 100644 --- a/sugar/graphics/canvasicon.py +++ b/sugar/graphics/canvasicon.py @@ -123,7 +123,7 @@ class _IconCache: del self._icons[evict_key] def get_handle(self, name, fill_color, stroke_color): - if name == None: + if not name: return None if name[0:6] == "theme:":