Skip to content

Commit

Permalink
allow subclasses of MailNotifier to add modes
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Aug 8, 2011
1 parent b260e22 commit 11b3b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/status/mail.py
Expand Up @@ -287,7 +287,7 @@ def __init__(self, fromaddr, mode="all", categories=None, builders=None,
self.extraRecipients = extraRecipients
self.sendToInterestedUsers = sendToInterestedUsers
self.fromaddr = fromaddr
assert mode in MailNotifier.possible_modes
assert mode in self.possible_modes
self.mode = mode
self.categories = categories
self.builders = builders
Expand Down

0 comments on commit 11b3b7c

Please sign in to comment.