X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=c2c1f00af56585fae4194a8e8404f92b1f6ed40a;hb=84ac7494ff6a2fcf3687b0866c5e69ec02f972b2;hp=d4f3c76f170b947f05b1f7bce99741bc8b3a10bd;hpb=3055ecfbb0b619318f7cfbbb18ba142968b4c617;p=csit.git 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:]):