From 8c94ee8655c25f2b88e9793010ba29eb131e4951 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Fri, 3 May 2024 20:19:46 +0100 Subject: [PATCH] Don't recursively find spans --- 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 5089ec6..a1fcbce 100644 --- a/src/cogs/election.py +++ b/src/cogs/election.py @@ -69,7 +69,7 @@ class ElectionCog(commands.Cog): results: dict[str, list[int]] = {} for child_ul in good_soup.children: child_ul: BeautifulSoup - span = child_ul.find("span") + span = child_ul.find("span", recursive=False) if not span: self.log.warning("%r did not have a 'span' element.", child_ul) continue