From 4110b26da108b97d51fe9882f4dc1ff97c1c8bac Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 8 Aug 2012 14:14:59 -0400 Subject: [PATCH] Fix another bug. --- earwigbot/tasks/drn_clerkbot.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/earwigbot/tasks/drn_clerkbot.py b/earwigbot/tasks/drn_clerkbot.py index 48addd9..ec777a0 100644 --- a/earwigbot/tasks/drn_clerkbot.py +++ b/earwigbot/tasks/drn_clerkbot.py @@ -498,11 +498,12 @@ class DRNClerkBot(Task): user = re.search("[:*#]{,5} \{\{User\|(.*?)\}\}", line) if user: party = user.group(1).replace("_", " ").strip() - party = party[0].upper() + party[1:] - if party == case.file_user: - continue - notice = _Notice("User talk:" + party, template, too_late) - notices.append(notice) + if party: + party = party[0].upper() + party[1:] + if party == case.file_user: + continue + notice = _Notice("User talk:" + party, template, too_late) + notices.append(notice) case.parties_notified = True log = u" {0}: will try to notify {1} parties with '{2}'"