Skip to content
Snippets Groups Projects
Commit f3fbf576 authored by nkour's avatar nkour
Browse files

catch one more type of exception

parent 2edddc37
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,8 @@ def set_avatar(self, vcard):
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment