fix get_json returns 400

This commit is contained in:
Son NK 2020-03-11 14:02:35 +01:00
parent eb66900ba3
commit ab082a5f9b

View file

@ -33,7 +33,7 @@ def new_random_alias():
)
note = None
data = request.get_json()
data = request.get_json(silent=True)
if data:
note = data.get("note")