Fix configSMTP_SEND -> config.getboolean(section, 'use-smtp') typo.
authorW. Trevor King <wking@tremily.us>
Fri, 5 Oct 2012 01:40:55 +0000 (21:40 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 5 Oct 2012 01:40:55 +0000 (21:40 -0400)
rss2email.py

index 7cee10da62d4b44e63390347c6855d42ccaa5024..2ee79eddc55c059cdd38acf4fc98947698eb3790 100755 (executable)
@@ -508,7 +508,7 @@ def sendmail_send(sender, recipient, message, config=None, section='DEFAULT'):
         raise SendmailError() from e
 
 def send(sender, recipient, message, config=None, section='DEFAULT'):
-    if configSMTP_SEND:
+    if config.getboolean(section, 'use-smtp'):
         smtp_send(sender, recipient, message)
     else:
         sendmail_send(sender, recipient, message)