fix: made change_data_path return if data_path is none
This commit is contained in:
parent
030fef4e8a
commit
d6511fb550
1 changed files with 1 additions and 0 deletions
|
@ -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}`.")
|
||||
|
|
Loading…
Reference in a new issue