diff options
author | 2018-11-15 13:37:21 -0800 | |
---|---|---|
committer | 2018-11-15 13:37:21 -0800 | |
commit | e1f6aa718142ddc95bfa618456def7c4fd8fdd7b (patch) | |
tree | b09f15119f7a4b37b10050d0a6abd49a5eb3be25 | |
parent | Merge branch 'enhancement/bb-watch-message-reformat' into 'master' (diff) |
big brother: fix key error when un-watching
-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") |