We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 676d3c2 commit a94ee4dCopy full SHA for a94ee4d
coc/wars.py
@@ -420,7 +420,7 @@ def _from_data(self, data: dict) -> None:
420
self.state: str = data_get("state")
421
self.season: str = data_get("season")
422
423
- rounds = data_get("rounds")
+ rounds = data_get("rounds", [])
424
self.number_of_rounds: int = len(rounds)
425
# the API returns a list and the rounds that haven't started contain war tags of #0 (not sure why)...
426
# we want to get only the valid rounds
0 commit comments