aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2018-11-15 13:37:21 -0800
committerGravatar MarkKoz <[email protected]>2018-11-15 13:37:21 -0800
commite1f6aa718142ddc95bfa618456def7c4fd8fdd7b (patch)
treeb09f15119f7a4b37b10050d0a6abd49a5eb3be25
parentMerge branch 'enhancement/bb-watch-message-reformat' into 'master' (diff)
big brother: fix key error when un-watching
-rw-r--r--bot/cogs/bigbrother.py3
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")