catch one more type of exception

This commit is contained in:
Nikos Kouremenos 2005-08-26 19:54:51 +00:00
parent 2edddc379a
commit f3fbf57676
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,8 @@ timestamp, contact):
image = x.get_widget('avatar_image') image = x.get_widget('avatar_image')
image.set_from_pixbuf(scaled_buf) image.set_from_pixbuf(scaled_buf)
image.show_all() 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 pass
def set_state_image(self, jid): def set_state_image(self, jid):