From 4914a78f593124788c754695b79be146c3916c6f Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Sun, 15 Apr 2018 18:21:11 +0200 Subject: [PATCH] CSIT-1041: Trending dashboard Change-Id: I1905039550283d7eb23d02b32bb5fb837215e37e Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_CPTA.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py index e8091c0b8d..c326aa634f 100644 --- a/resources/tools/presentation/generator_CPTA.py +++ b/resources/tools/presentation/generator_CPTA.py @@ -387,7 +387,7 @@ def _generate_all_charts(spec, input_data): input_data.metadata(job_name, build)["version"] ) except KeyError: - pass + build_info[build] = ("", "") # Create the header: csv_table = list() @@ -487,7 +487,11 @@ def _generate_all_charts(spec, input_data): row[idx] = str(round(float(item) / 1000000, 2)) except ValueError: pass - txt_table.add_row(row) + try: + txt_table.add_row(row) + except Exception as err: + logging.warning("Error occurred while generating TXT table:" + "\n{0}".format(err)) line_nr += 1 txt_table.align["Build Number:"] = "l" with open("{0}.txt".format(file_name), "w") as txt_file: -- 2.16.6