From 57d23e8d68a1bc5b01f547052ffdaac1e9044a68 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 12 Mar 2021 17:30:39 -0800 Subject: [PATCH] Remove member if not found --- discordbot/titanembeds/redisqueue.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discordbot/titanembeds/redisqueue.py b/discordbot/titanembeds/redisqueue.py index 2465e42..2b4ca99 100644 --- a/discordbot/titanembeds/redisqueue.py +++ b/discordbot/titanembeds/redisqueue.py @@ -134,8 +134,7 @@ class RedisQueue: if not member: members = await guild.query_members(user_ids=[int(params["user_id"])], cache=True) if not len(members): - await self.connection.set(key, "") - await self.enforce_expiring_key(key) + self.remove_member(member) return else: member = members[0]