remove assert

This commit is contained in:
Nikos Kouremenos 2005-10-03 17:21:48 +00:00
parent e41bbd657d
commit 5c61b2de72
1 changed files with 2 additions and 4 deletions

View File

@ -223,10 +223,8 @@ timestamp, contact):
return 0 # FIXME: always zero why?? return 0 # FIXME: always zero why??
def show_avatar(self, jid): def show_avatar(self, jid):
assert(not self.plugin.avatar_pixbufs.has_key(jid)) if self.plugin.avatar_pixbufs[jid] is None:
if not self.plugin.avatar_pixbufs.has_key(jid) or\ return # contact has no avatar
self.plugin.avatar_pixbufs[jid] is None:
return # contact does not have avatar stored (can this happen?) or has no avatar
pixbuf = self.plugin.avatar_pixbufs[jid] pixbuf = self.plugin.avatar_pixbufs[jid]
w = gajim.config.get('avatar_width') w = gajim.config.get('avatar_width')