diff --git a/app/routes/account/hosting/vhost.py b/app/routes/account/hosting/vhost.py index 32ea679..0a44a52 100644 --- a/app/routes/account/hosting/vhost.py +++ b/app/routes/account/hosting/vhost.py @@ -123,9 +123,11 @@ def request_vhost( try: settings = get_settings() send_mail( - "hostmaster@ocf.berkeley.edu" - if not settings.debug - else current_user_formatted_email(), + ( + "hostmaster@ocf.berkeley.edu" + if not settings.debug + else current_user_formatted_email() + ), subject, message, sender=data.email, diff --git a/app/utils/cache.py b/app/utils/cache.py index ebcb743..4e1563b 100644 --- a/app/utils/cache.py +++ b/app/utils/cache.py @@ -1,4 +1,5 @@ """Caching decorators for ocfweb.""" + import logging import math from collections import namedtuple diff --git a/app/utils/celery.py b/app/utils/celery.py index 863e2e2..de6a667 100644 --- a/app/utils/celery.py +++ b/app/utils/celery.py @@ -4,6 +4,7 @@ creation using our special credentials. Other modules should import from here, rather than from ocflib directly. """ + import ssl from celery import Celery