remove assert
This commit is contained in:
parent
e41bbd657d
commit
5c61b2de72
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue