Commit 9f514d8c authored by louiz’'s avatar louiz’

Avoid a traceback on remove_contact:

parent 1a448192
......@@ -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):
"""
......
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