aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/config.py
diff options
context:
space:
mode:
authorfmenguy <francoisregis.menguy@orange.com>2020-08-24 16:00:01 +0200
committerfmenguy <francoisregis.menguy@orange.com>2020-08-24 16:04:06 +0200
commitdbb932797aff64d458231519d3cf245913913d67 (patch)
tree6e3d0571e21d98cb116d87bbbdd65eaa9e9d311c /nfvbench/config.py
parent259a75b97d735cff6cfc91c12bf84801c9dc992b (diff)
NFVBENCH-175 pylint w0707 correction
Change-Id: I16927f051f80c540ffc1989f5311e47e68b14a73 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/config.py')
-rw-r--r--nfvbench/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nfvbench/config.py b/nfvbench/config.py
index 4cc9c86..c107958 100644
--- a/nfvbench/config.py
+++ b/nfvbench/config.py
@@ -28,7 +28,7 @@ def config_load(file_name, from_cfg=None, whitelist_keys=None):
except IOError:
raise Exception("Configuration file at '{}' was not found. Please use correct path "
"and verify it is visible to container if you run nfvbench in container."
- .format(file_name))
+ .format(file_name)) from IOError
if from_cfg:
if not whitelist_keys:
@@ -52,7 +52,7 @@ def config_loads(cfg_text, from_cfg=None, whitelist_keys=None):
LOG.error("String %s is not well formatted. Please verify your yaml/json string. "
"If string is a file path, file was not found. Please use correct path and "
"verify it is visible to container if you run nfvbench in container.", cfg_text)
- raise Exception(e)
+ raise Exception(e) from e
if from_cfg:
if not whitelist_keys:
whitelist_keys = []