aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/reports_collection.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/steps/reports_collection.py')
-rw-r--r--src/onaptests/steps/reports_collection.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/onaptests/steps/reports_collection.py b/src/onaptests/steps/reports_collection.py
index 62c0447..bcb199f 100644
--- a/src/onaptests/steps/reports_collection.py
+++ b/src/onaptests/steps/reports_collection.py
@@ -43,12 +43,14 @@ class ReportsCollection:
usecase = settings.SERVICE_NAME
try:
details = settings.SERVICE_DETAILS
- except:
+ except NameError:
details = ""
+
try:
components = settings.SERVICE_COMPONENTS
- except:
+ except NameError:
components = ""
+
log_path = settings.LOG_CONFIG['handlers']['file']['filename']
jinja_env = Environment(
autoescape=select_autoescape(['html']),