X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=b98f32ca14cc7b7218b2e7785ef1e58856c271f0;hp=195380f7fbdca17e53f5eef271b6ebe7f17c6fb5;hb=a5e743b7c61c9524773279c6135e835e2b640b42;hpb=7a307e1c3df11defdd7cc46b5f07c30cd3770e72 diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 195380f7fb..b98f32ca14 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -184,9 +184,11 @@ def table_performance_improvements(table, input_data): ["value"]) / 1000000) except (KeyError, TypeError): # No data, ignore - pass + continue if data_lst: tbl_item.append({"data": eval(operation)(data_lst)}) + else: + tbl_item.append({"data": None}) elif cmd == "operation": operation = args[0] try: @@ -197,7 +199,7 @@ def table_performance_improvements(table, input_data): else: tbl_item.append({"data": None}) except IndexError: - logging.error("No data for {0}".format(tbl_item[0])) + logging.error("No data for {0}".format(tbl_item[1]["data"])) tbl_item.append({"data": None}) continue else: