From dbf3a5df5e449ffdbf078c470f434bbc523fdf49 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 13 Aug 2016 23:04:25 -0500 Subject: [PATCH] Corrected printing of polls --- cogs/strawpoll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/strawpoll.py b/cogs/strawpoll.py index 3235f16..c7f2187 100644 --- a/cogs/strawpoll.py +++ b/cogs/strawpoll.py @@ -41,7 +41,7 @@ class Strawpoll: if not poll_id: fmt = "\n".join("{}: https://strawpoll.me/{}".format(data['title'], id) for id, data in server_polls.items()) await self.bot.say("```\n{}```".format(fmt)) - elif poll_id in server_polls.keys(): + elif str(poll_id) in server_polls.keys(): poll = server_polls[poll_id] async with self.session.get("{}/{}".format(self.url, str(poll_id)), headers=self.headers) as response: