diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/roster.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/roster.py b/src/roster.py index a299ba12..97975d33 100644 --- a/src/roster.py +++ b/src/roster.py @@ -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): """ |