Skip to content
Snippets Groups Projects
Commit c7d4dc8b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

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