From 9ccbf58e2969969889807fde53ee0515613f7270 Mon Sep 17 00:00:00 2001 From: MagicTheDev Date: Sun, 5 Jan 2025 19:21:52 -0600 Subject: [PATCH] fix: remove comparison, as n always exists just with empty war tags --- coc/wars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coc/wars.py b/coc/wars.py index bdcf26f1..7ebb05d2 100644 --- a/coc/wars.py +++ b/coc/wars.py @@ -440,7 +440,7 @@ def _from_data(self, data: dict) -> None: # the API returns a list and the rounds that haven't started contain war tags of #0 (not sure why)... # we want to get only the valid rounds self.rounds: List[List[str]] = [n["warTags"] for n in rounds if - n["warTags"][0] != "#0" or n] + n["warTags"][0] != "#0"] self.__iter_clans = (ClanWarLeagueClan(data=data, client=self._client) for data in data_get("clans", []))