From ef531bd2d2221cb3afba3e3989f3c73c14ae1c12 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 7 Jun 2017 15:56:45 -0500 Subject: [PATCH] Ensure a response is given for the first question --- cogs/playlist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/playlist.py b/cogs/playlist.py index a5360d0..0c9a7d7 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -267,6 +267,9 @@ class Playlist: while True: response = await self.get_response(ctx, q1) + if not response: + break + if 'add' in response: # Ask the user what song to add, get the response, add it question = "What is the song you would like to add to {}?".format(playlist)