From 3ed2b2b9e42efe84081361a8304dc67a8560728f Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 3 May 2024 20:23:37 +0100 Subject: [PATCH] was looking in the wrong soup --- src/cogs/election.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cogs/election.py b/src/cogs/election.py index 069085d..e972680 100644 --- a/src/cogs/election.py +++ b/src/cogs/election.py @@ -49,7 +49,7 @@ class ElectionCog(commands.Cog): if not good_soup: return - css: str = "\n".join([x.get_text() for x in good_soup.find_all("style")]) + css: str = "\n".join([x.get_text() for x in soup.find_all("style")]) def find_colour(style_name: str, want: str = "background-colour") -> str | None: self.log.info("Looking for style %r", style_name)