Don't recursively find spans
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:19:46 +01:00
parent 16bd14bdc1
commit 8c94ee8655
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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