From 6adb667329c149bb0adc132a2c6e9bfbdd1a52dc Mon Sep 17 00:00:00 2001 From: morganrOL Date: Sat, 17 Oct 2020 22:05:15 +0200 Subject: Fix reporting when no details/components are defined Issue-ID: TEST-269 Signed-off-by: morganrOL Change-Id: I94a480aef910eb814b30c04b86eb206530b66c5c --- src/onaptests/steps/reports_collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/onaptests/steps/reports_collection.py b/src/onaptests/steps/reports_collection.py index 3c1dfb6..6879c2b 100644 --- a/src/onaptests/steps/reports_collection.py +++ b/src/onaptests/steps/reports_collection.py @@ -43,12 +43,12 @@ class ReportsCollection: usecase = settings.SERVICE_NAME try: details = settings.SERVICE_DETAILS - except NameError: + except (KeyError, NameError): details = "" try: components = settings.SERVICE_COMPONENTS - except NameError: + except (KeyError, NameError): components = "" jinja_env = Environment( -- cgit 1.2.3-korg