From 1e11fb15ca06c2f041e506a45541ade27009cb16 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:48:20 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- app/routes/account/hosting/vhost.py | 8 +++++--- app/utils/cache.py | 1 + app/utils/celery.py | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) 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