From dfb427e6da784075044505be3a2914218bb1996f Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 23 May 2020 19:50:36 +0200 Subject: [PATCH] format --- app/dashboard/views/mailbox_detail.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/dashboard/views/mailbox_detail.py b/app/dashboard/views/mailbox_detail.py index 3643c3ea..bb264813 100644 --- a/app/dashboard/views/mailbox_detail.py +++ b/app/dashboard/views/mailbox_detail.py @@ -48,9 +48,8 @@ def mailbox_detail_route(mailbox_id): new_email = change_email_form.email.data.lower().strip() if new_email != mailbox.email and not pending_email: # check if this email is not already used - if ( - mailbox_already_used(new_email, current_user) - or Alias.get_by(email=new_email) + if mailbox_already_used(new_email, current_user) or Alias.get_by( + email=new_email ): flash(f"Email {new_email} already used", "error") elif not email_domain_can_be_used_as_mailbox(new_email):