diff options
author | morganrol <morgan.richomme@orange.com> | 2021-02-10 10:16:59 +0100 |
---|---|---|
committer | morganrol <morgan.richomme@orange.com> | 2021-02-10 10:17:06 +0100 |
commit | 329e4445434d3a34f2ccd3ccbd48cdbae21dada0 (patch) | |
tree | 2bf91079ac55e07014817ff331d710cd295beb6a /src | |
parent | 1a5df3ce215a5502ff8e1045915e598ffada41c6 (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')
-rw-r--r-- | src/onaptests/steps/reports_collection.py | 6 |
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( |