Ignore errors when trying to display buddy pictures

This commit is contained in:
Dan Williams 2007-07-07 20:41:58 -04:00
parent bbb9e9e3b9
commit 68e40429fb

View File

@ -32,7 +32,11 @@ class BuddyMenu(Palette):
Palette.__init__(self, buddy.get_nick())
pixbuf = self._get_buddy_icon_pixbuf()
pixbuf = None
try:
pixbuf = self._get_buddy_icon_pixbuf()
except gobject.GError, e:
pass
if pixbuf:
scaled_pixbuf = pixbuf.scale_simple(units.grid_to_pixels(1),
units.grid_to_pixels(1),