If we don't have a feed-specific section, use DEFAULT in Feed._send().
authorW. Trevor King <wking@tremily.us>
Fri, 5 Oct 2012 01:41:26 +0000 (21:41 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 5 Oct 2012 01:41:26 +0000 (21:41 -0400)
rss2email.py

index 2ee79eddc55c059cdd38acf4fc98947698eb3790..2e76e248f89d4f3256416c15169ad16627695bef 100755 (executable)
@@ -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.