diff options
author | morganrOL <morgan.richomme@orange.com> | 2020-10-17 22:05:15 +0200 |
---|---|---|
committer | morganrOL <morgan.richomme@orange.com> | 2020-10-17 22:05:15 +0200 |
commit | 6adb667329c149bb0adc132a2c6e9bfbdd1a52dc (patch) | |
tree | 24e0dda154ca90b7248b62ef1b926399454210f9 | |
parent | bb559766aa1c5dbe013908b23f097c4157693959 (diff) |
Fix reporting when no details/components are defined
Issue-ID: TEST-269
Signed-off-by: morganrOL <morgan.richomme@orange.com>
Change-Id: I94a480aef910eb814b30c04b86eb206530b66c5c
-rw-r--r-- | src/onaptests/steps/reports_collection.py | 4 |
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( |