Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
ups, undefined smtp_user
Browse files Browse the repository at this point in the history
NameError: global name 'smtp_user' is not defined
  • Loading branch information
evgeni committed Jun 17, 2011
1 parent 90fa891 commit fad3efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aacraidd
Expand Up @@ -44,14 +44,14 @@ config.read(options.conffile)

smtp_enabled = config.getboolean('aacraidd', 'smtp_enabled')

smtp_server = smtp_port = smtp_user = smtp_pass = None

if smtp_enabled:
smtp_server = config.get('aacraidd', 'smtp_server')
smtp_port = config.getint('aacraidd', 'smtp_port')
if config.has_option('aacraidd', 'smtp_user') and config.has_option('aacraidd', 'smtp_pass'):
smtp_user = config.get('aacraidd', 'smtp_user')
smtp_pass = config.get('aacraidd', 'smtp_pass')
else:
smtp_server = smtp_port = smtp_user = smtp_pass = None

mail_subject = config.get('aacraidd', 'mail_subject')
mail_from = config.get('aacraidd', 'mail_from')
Expand Down

0 comments on commit fad3efb

Please sign in to comment.