Fix edge case where the base url isnt in the badge url for some reason

This commit is contained in:
Luke Robles 2024-01-01 17:21:35 -08:00
parent 09b6275b19
commit ef44a5d4d9

View File

@ -95,6 +95,8 @@ async def rsi_find(player):
.findNext("span", class_="icon")
.findNext("img")["src"]
)
if base_url not in badge_url:
badge_url = base_url + badge_url
badge_text = (
soup.find("p", class_="entry")