diff --git a/pyproject.toml b/pyproject.toml index 99f294b..cb999dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "SignalCliAPi" -version = "0.5.10.6" +version = "0.5.10.7" authors = [ { name="Peter Nearing", email="me@peternearing.ca" } ] diff --git a/setup.cfg b/setup.cfg index f0e93ea..d069fa4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = SignalCliApi -version = 0.5.10.6 +version = 0.5.10.7 author = Peter Nearing author_email = me@peternearing.ca description = A python interface to the signal-cli found at https://github.com/AsamK/signal-cli diff --git a/src/signal_cli_api/__init__.py b/src/signal_cli_api/__init__.py index 3d7cfe8..693728b 100644 --- a/src/signal_cli_api/__init__.py +++ b/src/signal_cli_api/__init__.py @@ -2,7 +2,7 @@ File: __init__.py Description: A python3 interface to signal-cli. """ -__version__: str = '0.5.10.6' +__version__: str = '0.5.10.7' __author__: str = 'Peter Nearing' __email__: str = 'me@peternearing.ca' diff --git a/src/signal_cli_api/signal_contacts.py b/src/signal_cli_api/signal_contacts.py index 6dc7b79..7a042af 100644 --- a/src/signal_cli_api/signal_contacts.py +++ b/src/signal_cli_api/signal_contacts.py @@ -131,9 +131,12 @@ def __init__(self, def __drop_duplicates__(self): orig_contacts = self._contacts.copy() for orig_contact in orig_contacts: - for contact in orig_contacts: + for contact in self._contacts.copy(): if contact == orig_contact: - self._contacts.remove(contact) + try: + self._contacts.remove(contact) + except ValueError: + pass