fix flake8

This commit is contained in:
Kenneth Kehl
2024-07-25 12:38:33 -07:00
13 changed files with 67 additions and 56 deletions

View File

@@ -38,7 +38,7 @@ def verify_email(token):
current_app.config["EMAIL_EXPIRY_SECONDS"],
)
except SignatureExpired:
current_app.logger.error(f"Email link expired #notify-admin-1505")
current_app.logger.error("Email link expired #notify-admin-1505")
flash(
"The link in the email we sent you has expired. We've sent you a new one."
)
@@ -52,7 +52,8 @@ def verify_email(token):
if user.is_active:
current_app.logger.error(
f"User is using an invite link but is already logged in {user.id} #notify-admin-1505")
f"User is using an invite link but is already logged in {user.id} #notify-admin-1505"
)
flash("That verification link has expired.")
return redirect(url_for("main.sign_in"))