changeset c08280b346b5 in /home/hg/repos/gajim details:http://hg.gajim.org/gajim?cmd=changeset;node=c08280b346b5 description: prevent traceback when we remove contacts in iter_contacts() loop.
diffstat: src/common/contacts.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines): diff -r d771ec6ea227 -r c08280b346b5 src/common/contacts.py --- a/src/common/contacts.py Mon Jul 20 20:09:39 2009 +0200 +++ b/src/common/contacts.py Mon Jul 20 23:47:59 2009 +0200 @@ -291,8 +291,8 @@ 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): _______________________________________________ Commits mailing list Commits@gajim.org http://lists.gajim.org/cgi-bin/listinfo/commits