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

This commit is contained in:
Yann Leboulanger 2009-07-21 00:13:55 +02:00
parent cd9eed6277
commit d408610425
1 changed files with 1 additions and 1 deletions

View File

@ -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):