If there is no price available, say so
This commit is contained in:
parent
6d87608a78
commit
445df6ba21
@ -53,7 +53,6 @@ async def get_ship(ship_name):
|
|||||||
|
|
||||||
embed.add_field(name="**Role**", value=ship_role)
|
embed.add_field(name="**Role**", value=ship_role)
|
||||||
|
|
||||||
try:
|
|
||||||
# ingame_price = (
|
# ingame_price = (
|
||||||
# soup.find("div", {"class": "data-buycost infobox-data infobox-col2"})
|
# soup.find("div", {"class": "data-buycost infobox-data infobox-col2"})
|
||||||
# .find("div", {"class": "infobox-data__value"})
|
# .find("div", {"class": "infobox-data__value"})
|
||||||
@ -74,9 +73,7 @@ async def get_ship(ship_name):
|
|||||||
for x in ingame_price:
|
for x in ingame_price:
|
||||||
ingame_price = " ".join(x) + " aUEC"
|
ingame_price = " ".join(x) + " aUEC"
|
||||||
|
|
||||||
# embed.add_field(name="**Where to buy**", value=result, inline=True)
|
if not len(ingame_price):
|
||||||
|
|
||||||
except Exception:
|
|
||||||
ingame_price = "No in-game price available"
|
ingame_price = "No in-game price available"
|
||||||
embed.add_field(name="**Ingame Price**", value=ingame_price, inline=True)
|
embed.add_field(name="**Ingame Price**", value=ingame_price, inline=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user