Commit 9f613afd authored by jimpp's avatar jimpp

Don't traceback when refiltering during the model.clear (has a bad account name).

Fixes #3893.
parent 5a459104
......@@ -246,9 +246,10 @@ class Contacts:
return None
def iter_contacts(self, account):
for jid in self._contacts[account]:
for contact in self._contacts[account][jid]:
yield contact
if account in self._contacts:
for jid in self._contacts[account]:
for contact in self._contacts[account][jid]:
yield contact
def get_contact_from_full_jid(self, account, fjid):
''' Get Contact object for specific resource of given jid'''
......
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