fix case signed_suffix is None
This commit is contained in:
parent
79ca39a625
commit
eec2880c41
|
@ -167,7 +167,9 @@ def new_custom_alias_v3():
|
||||||
return jsonify(error="request body does not follow the required format"), 400
|
return jsonify(error="request body does not follow the required format"), 400
|
||||||
|
|
||||||
alias_prefix = data.get("alias_prefix", "").strip().lower().replace(" ", "")
|
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")
|
mailbox_ids = data.get("mailbox_ids")
|
||||||
note = data.get("note")
|
note = data.get("note")
|
||||||
name = data.get("name")
|
name = data.get("name")
|
||||||
|
|
Loading…
Reference in New Issue