Fix issue with un-buyable ships causing the bot to error
This commit is contained in:
parent
c73169c6a1
commit
27b4e0e3f9
0
app/bot.py
Normal file → Executable file
0
app/bot.py
Normal file → Executable file
0
app/cogs/actual_utils.py
Executable file → Normal file
0
app/cogs/actual_utils.py
Executable file → Normal file
0
app/cogs/stable_diffusion.py
Normal file → Executable file
0
app/cogs/stable_diffusion.py
Normal file → Executable file
0
app/requirements.txt
Normal file → Executable file
0
app/requirements.txt
Normal file → Executable file
3
app/star_citizen.py
Normal file → Executable file
3
app/star_citizen.py
Normal file → Executable file
@ -105,6 +105,7 @@ async def get_ship(ship_name):
|
||||
inline=True,
|
||||
)
|
||||
|
||||
try:
|
||||
buy_location = (
|
||||
soup.find("span", {"id": "Universe_availability"})
|
||||
.findNext("tbody")
|
||||
@ -117,6 +118,8 @@ async def get_ship(ship_name):
|
||||
value=", ".join(str(x.text) for x in buy_location),
|
||||
inline=True,
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
embed.add_field(name="-------", value="", inline=False)
|
||||
try:
|
||||
|
0
app/stock.py
Normal file → Executable file
0
app/stock.py
Normal file → Executable file
0
argocd-application.yaml
Normal file → Executable file
0
argocd-application.yaml
Normal file → Executable file
0
helm/values.yaml
Normal file → Executable file
0
helm/values.yaml
Normal file → Executable file
0
test-dragon-bot.sh
Normal file → Executable file
0
test-dragon-bot.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user