Account for no ship pricing on finder.cstone's site

This commit is contained in:
Luke Robles 2023-12-24 14:54:35 -08:00
parent 7e3af704c2
commit 6e904d3505

View File

@ -206,6 +206,10 @@ async def get_ship(ship_name):
price_table = price_soup.find("div", class_="pricetab").find_next("table")
second_row = price_table.find_all("tr")[1]
if "Not sold directly or at all" in second_row.text:
price = "N/A"
else:
ingame_price = (
second_row.find_all("td")[1].get_text(strip=True).replace(" ", ",")
)