fix: made change_data_path return if data_path is none

This commit is contained in:
Seaswimmer 2023-08-01 15:07:54 -04:00
parent 030fef4e8a
commit d6511fb550
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -20,6 +20,7 @@ class MusicDownloader(commands.Cog):
old_path = await self.config.save_directory()
if not data_path:
await ctx.send(f"The current data path is `{old_path}`.")
return
if os.path.isdir(data_path):
await self.config.save_directory.set(data_path)
embed=discord.Embed(color=await self.bot.get_embed_color(None), description=f"The save directory has been set to `{data_path}`.\n It was previously set to `{old_path}`.")