was looking in the wrong soup
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 8s

This commit is contained in:
Nexus 2024-05-03 20:23:37 +01:00
parent 34194aed57
commit 3ed2b2b9e4
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -49,7 +49,7 @@ class ElectionCog(commands.Cog):
if not good_soup: if not good_soup:
return 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: def find_colour(style_name: str, want: str = "background-colour") -> str | None:
self.log.info("Looking for style %r", style_name) self.log.info("Looking for style %r", style_name)