diff options
author | Dan Williams <dcbw@redhat.com> | 2006-06-23 18:00:37 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2006-06-23 18:00:37 (GMT) |
commit | e5c7dea51cc174be406fcc67d40d1955471e9be0 (patch) | |
tree | 7890cc7e09bdc5ee9e6f0ee9eb84e6d6318e2db7 /sugar/chat | |
parent | a8c9f4301b7c8b66ee985199f7273d9fcd541b55 (diff) |
Don't traceback when an icon isn't found
Diffstat (limited to 'sugar/chat')
-rw-r--r-- | sugar/chat/richtext.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sugar/chat/richtext.py b/sugar/chat/richtext.py index 688b41a..08a5f44 100644 --- a/sugar/chat/richtext.py +++ b/sugar/chat/richtext.py @@ -90,8 +90,11 @@ class RichTextBuffer(gtk.TextBuffer): self.insert_with_tags_by_name(it, name, "icon", "object-id") icon_theme = gtk.icon_theme_get_default() - pixbuf = icon_theme.load_icon(name, 16, 0) - self.insert_pixbuf(it, pixbuf) + try: + pixbuf = icon_theme.load_icon(name, 16, 0) + self.insert_pixbuf(it, pixbuf) + except gobject.GError: + pass def apply_tag(self, tag_name): self.active_tags.append(tag_name) |