Handle no playlist being given
This commit is contained in:
parent
049973f026
commit
9ca6f8996f
|
@ -254,9 +254,9 @@ class Playlist:
|
||||||
await ctx.invoke(self.playlists)
|
await ctx.invoke(self.playlists)
|
||||||
question = "Please provide what playlist you would like to edit, the playlists you have available are above."
|
question = "Please provide what playlist you would like to edit, the playlists you have available are above."
|
||||||
playlist = await self.get_response(ctx, question)
|
playlist = await self.get_response(ctx, question)
|
||||||
playlist = playlist.lower().strip()
|
|
||||||
if not playlist:
|
if not playlist:
|
||||||
return
|
return
|
||||||
|
playlist = playlist.lower().strip()
|
||||||
if playlist not in names:
|
if playlist not in names:
|
||||||
await ctx.send("You do not have a playlist named {}!".format(playlist))
|
await ctx.send("You do not have a playlist named {}!".format(playlist))
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue