aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-10-30 09:42:44 +0100
committerTibor Frank <tifrank@cisco.com>2017-10-30 08:43:45 +0000
commita5e743b7c61c9524773279c6135e835e2b640b42 (patch)
treed7df69d8223a907e8e8be09f94418e2e38be10f7 /resources/tools/presentation/generator_tables.py
parent7a307e1c3df11defdd7cc46b5f07c30cd3770e72 (diff)
Report: Add data
Change-Id: Ib09d9dc12ecd349b467e87f190e035d39306812e Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py6
1 files changed, 4 insertions, 2 deletions
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: