fix: fixed error handling if startup args not set
This commit is contained in:
parent
5c81426885
commit
b81615e6b6
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Pterodactyl(commands.Cog):
|
|||
await interaction_message.edit(f"Something went wrong.\nError: `Startup jar not set.`", ephemeral=True)
|
||||
raise LookupError("Startup jar not set.")
|
||||
elif await self.config.guild(interaction.guild).startup_arguments() is None:
|
||||
await interaction.response.send_message(f"Something went wrong.\nError: `Startup arguments not set.`", ephemeral=True)
|
||||
await interaction_message.edit(f"Something went wrong.\nError: `Startup arguments not set.`", ephemeral=True)
|
||||
raise LookupError("Startup arguments not set.")
|
||||
else:
|
||||
api_key = await self.config.guild(interaction.guild).api_key()
|
||||
|
|
Reference in a new issue