From 903393d1727d26c94b00907f3a3a4458662ffaec Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 10 Mar 2006 21:58:23 +0000 Subject: [PATCH] prevent TB --- src/vcard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vcard.py b/src/vcard.py index 2175cf2a1..889d10b65 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -264,6 +264,8 @@ class VcardWindow: if i == 'PHOTO': pixbuf, self.avatar_encoded, self.avatar_mime_type = \ get_avatar_pixbuf_encoded_mime(vcard[i]) + if not pixbuf: + continue image = self.xml.get_widget('PHOTO_image') pixbuf = gtkgui_helpers.get_scaled_pixbuf(pixbuf, 'vcard') image.set_from_pixbuf(pixbuf)