Remove whitespace in v0_blueprints_new

This commit is contained in:
Jacob Kozol 2019-07-09 13:33:41 +02:00 committed by Lars Karlitski
parent 38f1edd2aa
commit 6b55c8f8f0

View File

@ -401,7 +401,7 @@ def v0_blueprints_new():
blueprint = recipe_from_toml(request.data)
else:
blueprint = recipe_from_dict(request.get_json(cache=False))
if VALID_BLUEPRINT_NAME.match(blueprint["name"]) is None:
return jsonify(status=False, errors=[{"id": INVALID_CHARS, "msg": "Invalid characters in API path"}]), 400