Skip to content

Commit

Permalink
Pass None if no MAIL_USER or MAIL_PASSWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
n.lyubchich committed Aug 26, 2015
1 parent 801e5db commit a033400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ class ProductionConfig(Config):
MAIL_SERVER = production_settings.MAIL_SERVER
MAIL_PORT = production_settings.MAIL_PORT
MAIL_USE_SSL = production_settings.MAIL_USE_SSL
MAIL_USERNAME = production_settings.MAIL_USERNAME
MAIL_PASSWORD = production_settings.MAIL_PASSWORD
MAIL_USERNAME = getattr(production_settings, "MAIL_USERNAME", None)
MAIL_PASSWORD = getattr(production_settings, "MAIL_PASSWORD", None)
MAIL_DEFAULT_SENDER = production_settings.MAIL_DEFAULT_SENDER


Expand Down

0 comments on commit a033400

Please sign in to comment.