diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-04-15 18:21:11 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-04-15 18:21:11 +0200 |
commit | 4914a78f593124788c754695b79be146c3916c6f (patch) | |
tree | c4a3acc2b42fff835cd30d20adcbfee3c837626d | |
parent | f2f19bad6847e315366e5e9ab4952fded0097b1f (diff) |
CSIT-1041: Trending dashboard
Change-Id: I1905039550283d7eb23d02b32bb5fb837215e37e
Signed-off-by: Tibor Frank <tifrank@cisco.com>
-rw-r--r-- | resources/tools/presentation/generator_CPTA.py | 8 |
1 files 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: |