From e40a3b62727eb027db78c03cd8661e6811471115 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 20 Jul 2009 23:47:59 +0200 Subject: [PATCH] prevent traceback when we remove contacts in iter_contacts() loop. --- src/common/contacts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/contacts.py b/src/common/contacts.py index ae826d0fe..40d54f786 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -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):