From f3fbf57676a3c3e85d70c9e051c663b38e0482ed Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 26 Aug 2005 19:54:51 +0000 Subject: [PATCH] catch one more type of exception --- src/tabbed_chat_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 158e2a93f..1f9e06a7c 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -222,7 +222,8 @@ timestamp, contact): image = x.get_widget('avatar_image') image.set_from_pixbuf(scaled_buf) image.show_all() - except gobject.GError: # we may get "unknown image format" + # we may get "unknown image format" and/or something like pixbuf can be None + except (gobject.GError, AttributeError): pass def set_state_image(self, jid):