From 9ca6f8996f5f56b0fceb40fc50066f2fdb8e991c Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 28 Jun 2017 14:54:07 -0500 Subject: [PATCH] Handle no playlist being given --- cogs/playlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/playlist.py b/cogs/playlist.py index 3478b75..c5d3726 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -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