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

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

parent 6eba5f99
No related branches found
No related tags found
No related merge requests found
......@@ -291,8 +291,8 @@ class Contacts:
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):
......
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