diff options
author | 2024-04-16 15:31:50 +0100 | |
---|---|---|
committer | 2024-04-16 15:31:50 +0100 | |
commit | bfd9e446d4d242dd8948057ed3e29faaa699267f (patch) | |
tree | 36b9ddd4238fc83737a14eec867d10443eb27192 | |
parent | Pass watch info through to functions to avoid KeyError if user is unwatched (diff) |
Fix: dict.values() -> dict.items()
-rw-r--r-- | bot/exts/moderation/watchchannels/_watchchannel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/watchchannels/_watchchannel.py b/bot/exts/moderation/watchchannels/_watchchannel.py index 2a460e316..768d0afb3 100644 --- a/bot/exts/moderation/watchchannels/_watchchannel.py +++ b/bot/exts/moderation/watchchannels/_watchchannel.py @@ -185,7 +185,7 @@ class WatchChannel(metaclass=CogABCMeta): self.consumption_queue = self.message_queue.copy() self.message_queue.clear() - for user_id, channel_queues in self.consumption_queue.values(): + for user_id, channel_queues in self.consumption_queue.items(): for channel_queue in channel_queues.values(): while channel_queue: msg = channel_queue.popleft() |