aboutsummaryrefslogtreecommitdiff
path: root/src/notifications/emails.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-08-07 00:31:47 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-08-07 00:31:47 +0200
commite8b49eb250c5b713a4c80e4ce403d5fdf77d9b0d (patch)
tree81fae36a897c53e2c5fb62be846d7a85d2a877c3 /src/notifications/emails.py
parentUpdated Heroku runtime and Pipfile file for Python 3.7.0. (diff)
downloadnewspipe-e8b49eb250c5b713a4c80e4ce403d5fdf77d9b0d.tar.gz
newspipe-e8b49eb250c5b713a4c80e4ce403d5fdf77d9b0d.tar.bz2
newspipe-e8b49eb250c5b713a4c80e4ce403d5fdf77d9b0d.zip
async is now a reserved word
Diffstat (limited to 'src/notifications/emails.py')
-rw-r--r--src/notifications/emails.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notifications/emails.py b/src/notifications/emails.py
index 3ee0aa4a..e2c9f444 100644
--- a/src/notifications/emails.py
+++ b/src/notifications/emails.py
@@ -28,12 +28,12 @@ import sendgrid
from sendgrid.helpers.mail import *
import conf
-from web.decorators import async
+from web.decorators import async_maker
logger = logging.getLogger(__name__)
-@async
+@async_maker
def send_async_email(mfrom, mto, msg):
try:
s = smtplib.SMTP(conf.NOTIFICATION_HOST)
bgstack15