diff --git a/src/cogs/election.py b/src/cogs/election.py index a1fcbce..1698756 100644 --- a/src/cogs/election.py +++ b/src/cogs/election.py @@ -88,7 +88,7 @@ class ElectionCog(commands.Cog): results[str(groups["party"])] = [ int(groups["councillors"]), int(groups["net"]) * MULTI[groups["net_change"]], - int(find_colour(child_ul.next)[1:], base=16) + int(find_colour(child_ul.next["class"])[1:], base=16) ] return results