From 9e45d327250fd3061e964daeb2561d67b45d6a33 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 12 Sep 2015 01:15:14 -0500 Subject: [PATCH] Fix, since we can't get low watch counts. --- earwigbot/commands/watchers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/earwigbot/commands/watchers.py b/earwigbot/commands/watchers.py index dfbf984..9fb7ec3 100644 --- a/earwigbot/commands/watchers.py +++ b/earwigbot/commands/watchers.py @@ -43,7 +43,10 @@ class Watchers(Command): self.reply(data, msg.format(title)) return - watchers = page["watchers"] + if "watchers" in page: + watchers = page["watchers"] + else: + watchers = "<30" plural = "" if watchers == 1 else "s" msg = "\x0302{0}\x0F has \x02{1}\x0F watcher{2}." self.reply(data, msg.format(title, watchers, plural))