quick_frontend: catch an exception that can occurs when using a concurrent client
This commit is contained in:
parent
8f8880be10
commit
17476b420c
1 changed files with 4 additions and 1 deletions
|
|
@ -390,7 +390,10 @@ class QuickContactList(QuickWidget):
|
|||
except KeyError:
|
||||
log.warning(_(u"Trying to delete an unknow entity [{}]").format(entity))
|
||||
if in_roster:
|
||||
self._roster.remove(entity_bare)
|
||||
try:
|
||||
self._roster.remove(entity_bare)
|
||||
except KeyError:
|
||||
pass # contact has been removed already from a concurrent client?
|
||||
del self._cache[entity_bare]
|
||||
for group in groups:
|
||||
self._groups[group]['jids'].remove(entity_bare)
|
||||
|
|
|
|||
Loading…
Reference in a new issue