From 55bb3ad2c5bc624de87df860c6c72586ef0a1f0e Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 13 Aug 2016 22:18:43 -0500 Subject: [PATCH] Corrected error where a blank option would be submitted --- cogs/strawpoll.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/strawpoll.py b/cogs/strawpoll.py index e72781b..96f2973 100644 --- a/cogs/strawpoll.py +++ b/cogs/strawpoll.py @@ -59,8 +59,10 @@ class Strawpoll: match_multi = multi.findall(options) if match_single: options = match_single + options = [option for option in options if option] elif match_multi: options = match_multi[0].splitlines() + options = [option for option in options if option] else: await self.bot.say("Please provide options for a new strawpoll! Use {}help if you do not know the format".format(ctx.prefix)) return