Formatting

This commit is contained in:
richard-dds 2018-10-16 14:10:15 -04:00
parent c893a06f37
commit c3f6740083
2 changed files with 1 additions and 3 deletions

View File

@ -182,7 +182,7 @@ def make_mailer(app):
port=app.config.get("MAIL_PORT"),
username=app.config.get("MAIL_SENDER"),
password=app.config.get("MAIL_PASSWORD"),
use_tls=app.config.get("MAIL_TLS")
use_tls=app.config.get("MAIL_TLS"),
)
sender = app.config.get("MAIL_SENDER")
app.mailer = mailer.Mailer(mailer_connection, sender)

View File

@ -4,7 +4,6 @@ from email.message import EmailMessage
class MailConnection(object):
def send(self, message):
raise NotImplementedError()
@ -63,7 +62,6 @@ class RedisConnection(MailConnection):
class Mailer(object):
def __init__(self, connection, sender):
self.connection = connection
self.sender = sender