Remove whitespace in v0_blueprints_new
This commit is contained in:
parent
38f1edd2aa
commit
6b55c8f8f0
@ -401,7 +401,7 @@ def v0_blueprints_new():
|
|||||||
blueprint = recipe_from_toml(request.data)
|
blueprint = recipe_from_toml(request.data)
|
||||||
else:
|
else:
|
||||||
blueprint = recipe_from_dict(request.get_json(cache=False))
|
blueprint = recipe_from_dict(request.get_json(cache=False))
|
||||||
|
|
||||||
if VALID_BLUEPRINT_NAME.match(blueprint["name"]) is None:
|
if VALID_BLUEPRINT_NAME.match(blueprint["name"]) is None:
|
||||||
return jsonify(status=False, errors=[{"id": INVALID_CHARS, "msg": "Invalid characters in API path"}]), 400
|
return jsonify(status=False, errors=[{"id": INVALID_CHARS, "msg": "Invalid characters in API path"}]), 400
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user