From ac3de7682f77c078057fbde999727495c85b5a8c Mon Sep 17 00:00:00 2001 From: Nasreddine Bencherchali <8741929+nasbench@users.noreply.github.com> Date: Sat, 11 Nov 2023 22:44:54 +0100 Subject: [PATCH] Update run.py --- run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 3e01fd5..36cd7b1 100644 --- a/run.py +++ b/run.py @@ -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"]