copy list before iterating on it in case we modify it.
This commit is contained in:
parent
cd9eed6277
commit
d408610425
|
@ -292,7 +292,7 @@ class Contacts:
|
||||||
def iter_contacts(self, account):
|
def iter_contacts(self, account):
|
||||||
if account in self._contacts:
|
if account in self._contacts:
|
||||||
for jid in self._contacts[account].keys():
|
for jid in self._contacts[account].keys():
|
||||||
for contact in self._contacts[account][jid]:
|
for contact in self._contacts[account][jid][:]:
|
||||||
yield contact
|
yield contact
|
||||||
|
|
||||||
def get_contact_from_full_jid(self, account, fjid):
|
def get_contact_from_full_jid(self, account, fjid):
|
||||||
|
|
Loading…
Reference in New Issue