aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
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:]):