aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/onaptests/steps/reports_collection.py4
1 files 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(