From f3303ee6bb183f5c7e960cf563bbb33fea4112cb Mon Sep 17 00:00:00 2001 From: Renaud Boyer Date: Sun, 6 Dec 2020 22:06:03 +0100 Subject: [PATCH] linting --- app/dashboard/views/custom_domain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dashboard/views/custom_domain.py b/app/dashboard/views/custom_domain.py index fcf9c1eb..2c7df8da 100644 --- a/app/dashboard/views/custom_domain.py +++ b/app/dashboard/views/custom_domain.py @@ -35,10 +35,10 @@ def custom_domain(): new_domain = new_custom_domain_form.domain.data.lower().strip() if new_domain.startswith("http://"): - new_domain = new_domain[len("http://") :] + new_domain = new_domain[len("http://"):] if new_domain.startswith("https://"): - new_domain = new_domain[len("https://") :] + new_domain = new_domain[len("https://"):] if SLDomain.get_by(domain=new_domain): flash("A custom domain cannot be a built-in domain.", "error")