Commit 39948da1 authored by Yann Leboulanger's avatar Yann Leboulanger

copy list before iterating on it in case we modify it.

parent f19220a7
......@@ -292,7 +292,7 @@ class Contacts:
def iter_contacts(self, account):
if account in self._contacts:
for jid in self._contacts[account].keys():
for contact in self._contacts[account][jid]:
for contact in self._contacts[account][jid][:]:
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