mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
report get_yaml_data problems back to api
This commit is contained in:
@@ -59,6 +59,8 @@ def generate_api():
|
|||||||
if 'file' in request.files:
|
if 'file' in request.files:
|
||||||
file = request.files['file']
|
file = request.files['file']
|
||||||
options = get_yaml_data(file)
|
options = get_yaml_data(file)
|
||||||
|
if type(options) == str:
|
||||||
|
return {"text": options}, 400
|
||||||
|
|
||||||
json_data = request.get_json()
|
json_data = request.get_json()
|
||||||
race = False
|
race = False
|
||||||
|
Reference in New Issue
Block a user