prevent a traceback when we get a groupchat presence from unknown participant. see #5067

This commit is contained in:
Yann Leboulanger 2009-06-04 18:06:50 +02:00
parent daa86b240e
commit c7d4dc8bee
1 changed files with 3 additions and 0 deletions

View File

@ -1252,6 +1252,9 @@ class GroupchatControl(ChatControlBase):
else:
gc_c = gajim.contacts.get_gc_contact(self.account, self.room_jid,
nick)
if not gc_c:
log.error('%s has an iter, but no gc_contact instance')
return
# Re-get vcard if avatar has changed
# We do that here because we may request it to the real JID if we
# knows it. connections.py doesn't know it.