X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=b98f32ca14cc7b7218b2e7785ef1e58856c271f0;hb=refs%2Fchanges%2F96%2F9096%2F2;hp=195380f7fbdca17e53f5eef271b6ebe7f17c6fb5;hpb=d08498d06de775723a32597d109b537abf34a7e9;p=csit.git 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: