From 29d9c802747613f7449476c187b6c35337ce8767 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 31 Jan 2016 15:55:40 -0600 Subject: [PATCH] Fixup. --- earwigbot/managers.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/earwigbot/managers.py b/earwigbot/managers.py index fcf3b74..2ffb55c 100644 --- a/earwigbot/managers.py +++ b/earwigbot/managers.py @@ -225,8 +225,12 @@ class CommandManager(_ResourceManager): .. note:: The special ``rc`` hook actually passes a :class:`~.RC` object. """ - if data.chan in self.bot.config.irc["frontend"].get("quiet", []): - return + try: + if data.chan in self.bot.config.irc["frontend"]["quiet"]: + return + except KeyError: + pass + for command in self: if hook in command.hooks and self._wrap_check(command, data): thread = Thread(target=self._wrap_process,