summaryrefslogtreecommitdiffstats
path: root/nfvbench/config.py
diff options
context:
space:
mode:
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 = []