diff --git a/src/cogs/election.py b/src/cogs/election.py index 67df7f8..a805156 100644 --- a/src/cogs/election.py +++ b/src/cogs/election.py @@ -128,7 +128,7 @@ class ElectionCog(commands.Cog): self.log.error("failed to parse %r", span) continue results[party] = [seats, change, 0, 0] - for child_li in good_soups[1].children: + for child_li in good_soups[0].children: span = list(child_li.children)[-1] try: party, extra = span.get_text().strip().split(":", 1)