Avoid a traceback on remove_contact:
This commit is contained in:
parent
1a44819269
commit
9f514d8c7d
1 changed files with 4 additions and 2 deletions
|
@ -199,8 +199,10 @@ class RosterGroup(object):
|
|||
"""
|
||||
Remove a Contact object from the list
|
||||
"""
|
||||
assert isinstance(contact, Contact)
|
||||
self._contacts.remove(contact)
|
||||
try:
|
||||
self._contacts.remove(contact)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
def add_contact(self, contact):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue