diff --git a/aioredis/client.py b/aioredis/client.py index 2e53d8e54..3d0ba7aee 100644 --- a/aioredis/client.py +++ b/aioredis/client.py @@ -4146,6 +4146,7 @@ def unsubscribe(self, *args) -> Awaitable: parsed_args = list_or_args(args[0], args[1:]) channels = self._normalize_keys(dict.fromkeys(parsed_args)) else: + parsed_args = [] channels = self.channels self.pending_unsubscribe_channels.update(channels) return self.execute_command("UNSUBSCRIBE", *parsed_args)