diff --git a/app/bot.py b/app/bot.py old mode 100644 new mode 100755 diff --git a/app/cogs/actual_utils.py b/app/cogs/actual_utils.py old mode 100755 new mode 100644 diff --git a/app/cogs/stable_diffusion.py b/app/cogs/stable_diffusion.py old mode 100644 new mode 100755 diff --git a/app/requirements.txt b/app/requirements.txt old mode 100644 new mode 100755 diff --git a/app/star_citizen.py b/app/star_citizen.py old mode 100644 new mode 100755 index 6ced8486..f18dd978 --- a/app/star_citizen.py +++ b/app/star_citizen.py @@ -105,19 +105,22 @@ async def get_ship(ship_name): inline=True, ) - buy_location = ( - soup.find("span", {"id": "Universe_availability"}) - .findNext("tbody") - .find_all("td", {"class", "Location smwtype_wpg"}) - ) - - if len(buy_location): - embed.add_field( - name="**Buyable At**", - value=", ".join(str(x.text) for x in buy_location), - inline=True, + try: + buy_location = ( + soup.find("span", {"id": "Universe_availability"}) + .findNext("tbody") + .find_all("td", {"class", "Location smwtype_wpg"}) ) + if len(buy_location): + embed.add_field( + name="**Buyable At**", + value=", ".join(str(x.text) for x in buy_location), + inline=True, + ) + except Exception: + pass + embed.add_field(name="-------", value="", inline=False) try: cargo_capacity = ( diff --git a/app/stock.py b/app/stock.py old mode 100644 new mode 100755 diff --git a/argocd-application.yaml b/argocd-application.yaml old mode 100644 new mode 100755 diff --git a/helm/values.yaml b/helm/values.yaml old mode 100644 new mode 100755 diff --git a/test-dragon-bot.sh b/test-dragon-bot.sh old mode 100644 new mode 100755