Browse Source

Don't throw error when unsubscribing from accounts that aren't subscribed

Fixes #201
Tulir Asokan 2 years ago
parent
commit
26cc754957
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mausignald/signald.py

+ 1 - 1
mausignald/signald.py

@@ -133,7 +133,7 @@ class SignaldClient(SignaldRPCClient):
     async def unsubscribe(self, username: str) -> bool:
         try:
             await self.request_v1("unsubscribe", account=username)
-            self._subscriptions.remove(username)
+            self._subscriptions.discard(username)
             return True
         except RPCError as e:
             self.log.debug("Failed to unsubscribe from %s: %s", username, e)