aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-05-27 10:18:24 +0200
committerTibor Frank <tifrank@cisco.com>2020-05-27 10:19:50 +0200
commitcab556a47fee3858bd3ef9fc33eb84a563f0e82d (patch)
treef6a2073b9e6b6c086078d73a4a792cfcef7a91a9
parent7248cf97d0f950cda2e1167478d44455e03ddc8d (diff)
PAL: Fix table_comparison
Type: Fix Signed-off-by: Tibor Frank <tifrank@cisco.com> Change-Id: I532cdb0967708e48bc9f9c5e87f96f95acbb9fae Signed-off-by: Tibor Frank <tifrank@cisco.com>
-rw-r--r--resources/tools/presentation/generator_tables.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index d128a11e54..fbac776202 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -1704,7 +1704,9 @@ def table_comparison(table, input_data):
for line in tbl_cmp_lst:
row = [line[0], ]
for idx, itm in enumerate(line[1:]):
- if itm is None:
+ if itm is None or not isinstance(itm, dict) or\
+ itm.get(u'mean', None) is None or \
+ itm.get(u'stdev', None) is None:
row.append(u"NT")
row.append(u"NT")
else: