From a12d9c6dd7bb4aa10035ac309878e9c2cdad8553 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Sat, 20 Oct 2018 23:37:22 -0500 Subject: [PATCH] Catch edge case --- cogs/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/stats.py b/cogs/stats.py index 187103f..8ed439b 100644 --- a/cogs/stats.py +++ b/cogs/stats.py @@ -190,7 +190,7 @@ class Stats: EXAMPLE: !mostboops RESULT: You've booped @OtherPerson 351253897120935712093572193057310298 times!""" boops = self.bot.db.load('boops', key=ctx.message.author.id) - if boops is None: + if boops is None or "boops" not in boops: await ctx.send("You have not booped anyone {} Why the heck not...?".format(ctx.message.author.mention)) return