From: W. Trevor King Date: Fri, 5 Oct 2012 01:41:26 +0000 (-0400) Subject: If we don't have a feed-specific section, use DEFAULT in Feed._send(). X-Git-Tag: v3.0~72^2~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23dd7fbb8a2780d0ccc37353aa6f6d3a48f60a3b;p=rss2email.git If we don't have a feed-specific section, use DEFAULT in Feed._send(). --- 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.