From 328b3d116ec53c92e975dbfbdaa73a810c98a83c Mon Sep 17 00:00:00 2001 From: Ian Hoang Date: Fri, 26 Jan 2024 10:59:24 -0600 Subject: [PATCH] Ling errors fix part 2 Signed-off-by: Ian Hoang --- osbenchmark/workload/loader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osbenchmark/workload/loader.py b/osbenchmark/workload/loader.py index e7acee5ab..e1b53a11b 100644 --- a/osbenchmark/workload/loader.py +++ b/osbenchmark/workload/loader.py @@ -999,8 +999,9 @@ def read(self, workload_name, workload_spec_file, mapping_dir): except jinja2.exceptions.TemplateSyntaxError as e: exception_message = f"Jinja2 Exception TemplateSyntaxError: {e}\n" if 'endif' in exception_message: - exception_message += \ - "There is an extra Jinja2 \"endif\" somewhere in workload's files. Please remove it so that the workload can be rendered and run.\n" + exception_message = exception_message + \ + "There is an extra Jinja2 \"endif\" somewhere in workload's files. " + \ + "Please remove it so that the workload can be rendered and run.\n" if 'Missing end of raw directive' in exception_message: exception_message += \ "In the workload files, \"{% raw -%}\" was provided but is missing it's associated \"{% endraw -%}\" tag.\n"