aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 367e8c9878..0ff4de6c08 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -67,7 +67,13 @@ def table_details(table, input_data):
job = table["data"].keys()[0]
build = str(table["data"][job][0])
- for suite_longname, suite in input_data.suites(job, build).iteritems():
+ try:
+ suites = input_data.suites(job, build)
+ except KeyError:
+ logging.error(" No data available. The table will not be generated.")
+ return
+
+ for suite_longname, suite in suites.iteritems():
# Generate data
suite_name = suite["name"]
table_lst = list()