aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps
diff options
context:
space:
mode:
authormorganrol <morgan.richomme@orange.com>2021-02-10 10:16:59 +0100
committermorganrol <morgan.richomme@orange.com>2021-02-10 10:17:06 +0100
commit329e4445434d3a34f2ccd3ccbd48cdbae21dada0 (patch)
tree2bf91079ac55e07014817ff331d710cd295beb6a /src/onaptests/steps
parent1a5df3ce215a5502ff8e1045915e598ffada41c6 (diff)
Consider settings custom exceptions for reporting
Issue-ID: TEST-303 Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: Ia94f963cc145f154756e2765e7a8a5883ceb3188
Diffstat (limited to 'src/onaptests/steps')
-rw-r--r--src/onaptests/steps/reports_collection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/onaptests/steps/reports_collection.py b/src/onaptests/steps/reports_collection.py
index 4e19012..34b28af 100644
--- a/src/onaptests/steps/reports_collection.py
+++ b/src/onaptests/steps/reports_collection.py
@@ -4,7 +4,7 @@ from enum import Enum
from typing import List
from jinja2 import Environment, FileSystemLoader, select_autoescape
from onapsdk.configuration import settings
-
+from onapsdk.exceptions import SettingsError
class ReportStepStatus(Enum):
"""Enum which stores steps execution statuses."""
@@ -63,12 +63,12 @@ class ReportsCollection:
usecase = settings.SERVICE_NAME
try:
details = settings.SERVICE_DETAILS
- except (KeyError, AttributeError):
+ except (KeyError, AttributeError, SettingsError):
details = ""
try:
components = settings.SERVICE_COMPONENTS
- except (KeyError, AttributeError):
+ except (KeyError, AttributeError, SettingsError):
components = ""
jinja_env = Environment(