From f790f587570acab51272a3c40428e002821308d1 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 23 Jul 2020 11:30:19 +0100 Subject: [PATCH] Reformatting code/Updating Commentary --- cogs/modmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/modmail.py b/cogs/modmail.py index 50be702b..29d6a270 100644 --- a/cogs/modmail.py +++ b/cogs/modmail.py @@ -344,6 +344,7 @@ class Modmail(commands.Cog): # Don't count reactions that are made by the bot if payload.user_id == self.bot.user.id: return + # Don't count other reactions other than ✅ and ❌ elif payload.user_id: if str(payload.emoji) not in ['✅', '❌']: @@ -363,7 +364,7 @@ class Modmail(commands.Cog): cursor.execute(select_query, val) result = cursor.fetchone() - # Adding error handlingpip3 install + # Adding error handling if result is None: return