Skip to content

Commit

Permalink
Update run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nasbench committed Nov 11, 2023
1 parent 7f3f2e5 commit ac3de76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def convert():
template = str(base64.b64decode(request.json["pipelineYml"]), "utf-8")
template_pipeline = pipeline_generic.from_yaml(template)
except:
print("Error while parsing the template")
return Response(
f"YamlError: Malformed Pipeline Yaml", status=400, mimetype="text/html"
)

target = request.json["target"]
format = request.json["format"]
Expand Down

0 comments on commit ac3de76

Please sign in to comment.