Skip to content

Commit

Permalink
fix: missing null check for dict value (#2316)
Browse files Browse the repository at this point in the history
  • Loading branch information
cquintana92 authored Nov 11, 2024
1 parent 8ba75be commit ca3a078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/api/views/new_custom_alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def new_custom_alias_v3():
if not isinstance(data, dict):
return jsonify(error="request body does not follow the required format"), 400

alias_prefix = data.get("alias_prefix", "").strip().lower().replace(" ", "")
alias_prefix_data = data.get("alias_prefix", "") or ""
alias_prefix = alias_prefix_data.strip().lower().replace(" ", "")
signed_suffix = data.get("signed_suffix", "") or ""
signed_suffix = signed_suffix.strip()

Expand Down

0 comments on commit ca3a078

Please sign in to comment.