From eec2880c41c986fd92452976b96d2985900ef868 Mon Sep 17 00:00:00 2001 From: Son Date: Wed, 15 Dec 2021 17:12:27 +0100 Subject: [PATCH] fix case signed_suffix is None --- app/api/views/new_custom_alias.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/views/new_custom_alias.py b/app/api/views/new_custom_alias.py index af88fbf9..8f9dfa41 100644 --- a/app/api/views/new_custom_alias.py +++ b/app/api/views/new_custom_alias.py @@ -167,7 +167,9 @@ def new_custom_alias_v3(): return jsonify(error="request body does not follow the required format"), 400 alias_prefix = data.get("alias_prefix", "").strip().lower().replace(" ", "") - signed_suffix = data.get("signed_suffix", "").strip() + signed_suffix = data.get("signed_suffix", "") or "" + signed_suffix = signed_suffix.strip() + mailbox_ids = data.get("mailbox_ids") note = data.get("note") name = data.get("name")