1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Handle no playlist being given

This commit is contained in:
phxntxm 2017-06-28 14:54:07 -05:00
parent 049973f026
commit 9ca6f8996f

View file

@ -254,9 +254,9 @@ class Playlist:
await ctx.invoke(self.playlists)
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 = playlist.lower().strip()
if not playlist:
return
playlist = playlist.lower().strip()
if playlist not in names:
await ctx.send("You do not have a playlist named {}!".format(playlist))
return