From ca6c32f95140ed7313a2df8180739e7b0d5a0e7c Mon Sep 17 00:00:00 2001 From: Son NK Date: Mon, 30 Dec 2019 15:56:47 +0100 Subject: [PATCH] Fix formatting --- app/api/views/new_custom_alias.py | 2 +- app/auth/views/activate.py | 4 +++- app/auth/views/reset_password.py | 4 +--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/views/new_custom_alias.py b/app/api/views/new_custom_alias.py index dab66e3d..d3dd2b14 100644 --- a/app/api/views/new_custom_alias.py +++ b/app/api/views/new_custom_alias.py @@ -31,7 +31,7 @@ def new_custom_alias(): return ( jsonify( error="You have reached the limitation of a free account with the maximum of " - "3 custom aliases, please upgrade your plan to create more custom aliases" + "3 custom aliases, please upgrade your plan to create more custom aliases" ), 400, ) diff --git a/app/auth/views/activate.py b/app/auth/views/activate.py index d3eea5a0..d472bdbc 100644 --- a/app/auth/views/activate.py +++ b/app/auth/views/activate.py @@ -22,7 +22,9 @@ def activate(): if not activation_code: return ( - render_template("auth/activate.html", error="Activation code cannot be found"), + render_template( + "auth/activate.html", error="Activation code cannot be found" + ), 400, ) diff --git a/app/auth/views/reset_password.py b/app/auth/views/reset_password.py index 9c101f91..77635a1a 100644 --- a/app/auth/views/reset_password.py +++ b/app/auth/views/reset_password.py @@ -33,9 +33,7 @@ def reset_password(): return render_template("auth/reset_password.html", form=form, error=error) if reset_password_code.is_expired(): - error = ( - "The link has been already expired. Please make a new request of the reset password link" - ) + error = "The link has been already expired. Please make a new request of the reset password link" return render_template("auth/reset_password.html", form=form, error=error) if form.validate_on_submit():