Commit e795a074 authored by Yann Leboulanger's avatar Yann Leboulanger

prevent traceback when we remove contacts in iter_contacts() loop.

parent 7c80632d
......@@ -291,8 +291,8 @@ def get_contact(self, account, jid, resource=None):
def iter_contacts(self, account):
if account in self._contacts:
for jid in self._contacts[account]:
for contact in self._contacts[account][jid]:
for jid in self._contacts[account].keys():
for contact in self._contacts[account][jid].keys():
yield contact
def get_contact_from_full_jid(self, account, fjid):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment