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 ce60e60209
commit 5345b6138d

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")