diff options
author | 2018-11-15 21:45:18 +0000 | |
---|---|---|
committer | 2018-11-15 21:45:18 +0000 | |
commit | 7ef999cde3d843be4c1a930fd550c251e81ba7cf (patch) | |
tree | b09f15119f7a4b37b10050d0a6abd49a5eb3be25 | |
parent | Merge branch 'enhancement/bb-watch-message-reformat' into 'master' (diff) | |
parent | big brother: fix key error when un-watching (diff) |
Merge branch 'bugfix/bb-unwatch-keyerror' into 'master'
Big Brother: Fix KeyError when Unwatching
See merge request python-discord/projects/bot!93
-rw-r--r-- | bot/cogs/bigbrother.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/bigbrother.py b/bot/cogs/bigbrother.py index 68ae4546b..f8bd4e0b5 100644 --- a/bot/cogs/bigbrother.py +++ b/bot/cogs/bigbrother.py @@ -246,7 +246,8 @@ class BigBrother: if user.id in self.watched_users: del self.watched_users[user.id] - del self.channel_queues[user.id] + if user.id in self.channel_queues: + del self.channel_queues[user.id] else: log.warning(f"user {user.id} was unwatched but was not found in the cache") |