prevent traceback

This commit is contained in:
Yann Leboulanger 2009-07-24 16:17:49 +02:00
parent 02e24ab120
commit f748e893fb
1 changed files with 8 additions and 7 deletions

View File

@ -763,9 +763,10 @@ class RosterWindow:
# Remove contact before redrawing, otherwise the old
# numbers will still be show
gajim.contacts.remove_jid(account, jid, remove_meta=True)
if iters:
rest_of_family = [data for data in family
if account != data['account'] or jid != data['jid']]
if iters and rest_of_family:
if rest_of_family:
# reshow the rest of the family
brothers = self._add_metacontact_family(rest_of_family, account)
for c, acc in brothers: