report get_yaml_data problems back to api

This commit is contained in:
Fabian Dill 2020-10-29 02:56:26 +01:00
parent c8c14a079b
commit 67ee244bbe
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ def generate_api():
if 'file' in request.files:
file = request.files['file']
options = get_yaml_data(file)
if type(options) == str:
return {"text": options}, 400
json_data = request.get_json()
race = False