From 23dd7fbb8a2780d0ccc37353aa6f6d3a48f60a3b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 4 Oct 2012 21:41:26 -0400 Subject: [PATCH] If we don't have a feed-specific section, use DEFAULT in Feed._send(). --- rss2email.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rss2email.py b/rss2email.py index 2ee79ed..2e76e24 100755 --- a/rss2email.py +++ b/rss2email.py @@ -1154,8 +1154,11 @@ class Feed (object): def _send(self, sender, message): LOG.info('send message for {}'.format(self)) + section = self.section + if section not in self.config: + section = 'DEFAULT' send(sender=sender, recipient=self.to, message=message, - config=self.config, section=self.section) + config=self.config, section=section) def run(self, send=True): """Fetch and process the feed, mailing entry emails. -- 2.26.2