diff options
author | Tibor Frank <tifrank@cisco.com> | 2020-06-25 11:40:19 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2020-06-25 11:43:13 +0200 |
commit | e2d6dfa204eb3abef8845e742719cee7d4865ff7 (patch) | |
tree | b578f35d9743e7312e21cb0f36ab2539c23deb47 /resources/tools/presentation/generator_tables.py | |
parent | 72019941bfab96c7e687f5122f50e7c1f8cb2fca (diff) |
Report 2005: Add data
Change-Id: I35803563351aa5419726a8a469f23557b49189f2
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 3afa3830fa..eee95d6092 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -1690,8 +1690,11 @@ def table_comparison(table, input_data): if add_to_tbl: tbl_cmp_lst.append(new_row) - tbl_cmp_lst.sort(key=lambda rel: rel[0], reverse=False) - tbl_cmp_lst.sort(key=lambda rel: rel[-1][u'mean'], reverse=True) + try: + tbl_cmp_lst.sort(key=lambda rel: rel[0], reverse=False) + tbl_cmp_lst.sort(key=lambda rel: rel[-1][u'mean'], reverse=True) + except TypeError as err: + logging.warning(f"Empty data element in table\n{tbl_cmp_lst}\n{err}") rcas = list() rca_in = table.get(u"rca", None) |