From: Tibor Frank Date: Sun, 15 Apr 2018 16:21:11 +0000 (+0200) Subject: CSIT-1041: Trending dashboard X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=4914a78f593124788c754695b79be146c3916c6f CSIT-1041: Trending dashboard Change-Id: I1905039550283d7eb23d02b32bb5fb837215e37e Signed-off-by: Tibor Frank --- 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: