aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2023-02-27 09:30:10 +0100
committerTibor Frank <tifrank@cisco.com>2023-02-27 09:30:10 +0100
commitde85e6dd9e2fee7653953ca29f86923c1fad6c4e (patch)
treecdb2a9d1be9d32273b625828f1db86fa9fa1f62e /resources/tools/presentation/generator_tables.py
parent2463e060a53fb5313302238036f28a783d4a9f80 (diff)
Report: Add release data
Signed-off-by: Tibor Frank <tifrank@cisco.com> Change-Id: I94868a21f41f31cf30547fed1986a123286b5f27
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index d4f3c76f17..c2c1f00af5 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -2014,8 +2014,13 @@ def table_comparison(table, input_data):
for itm in footnote.split("\n"):
file_handler.write(f'"{itm}"\n')
- tbl_tmp = list()
- max_lens = [0, ] * len(tbl_cmp_lst[0])
+ try:
+ max_lens = [0, ] * len(tbl_cmp_lst[0])
+ except IndexError as err:
+ logging.error(f"Generator tables: {err}")
+ return
+
+ tbl_tmp = list()
for line in tbl_cmp_lst:
row = [line[0], ]
for idx, itm in enumerate(line[1:]):