]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/utils/mail.py
render the value of the email password in the settings page, otherwise it gets lost...
[osqa.git] / forum / utils / mail.py
index cecb5b4c240b1961ae119ec4e07e85c47e1e0996..4ab2a695618902c031cf27ce8a707a3608111d27 100644 (file)
@@ -33,7 +33,7 @@ def create_connection():
     connection = SMTP(str(settings.EMAIL_HOST), str(settings.EMAIL_PORT),
                           local_hostname=DNS_NAME.get_fqdn())
 
-    if (bool(settings.EMAIL_USE_TLS)):
+    if bool(settings.EMAIL_USE_TLS):
         connection.ehlo()
         connection.starttls()
         connection.ehlo()