summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/common/config.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-10-27 15:45:20 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-10-27 15:45:20 +0800
commita9da6ed15e08b2797f5c794117327d40b46bceae (patch)
tree5fd09ea9689fb326221025491dea51102b65f44a /testapi/opnfv_testapi/common/config.py
parentd62585d81b030d9c94e14ff3f0a6fb3205bbd61b (diff)
bugfix: E722 do not use bare except
new added pep8 check: https://build.opnfv.org/ci/job/testapi-verify-master/435/console Change-Id: I29c1ffbb534babf55ec2fe675001cc85b9e2e922 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/common/config.py')
-rw-r--r--testapi/opnfv_testapi/common/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testapi/opnfv_testapi/common/config.py b/testapi/opnfv_testapi/common/config.py
index 140e492..f888b07 100644
--- a/testapi/opnfv_testapi/common/config.py
+++ b/testapi/opnfv_testapi/common/config.py
@@ -44,7 +44,7 @@ class Config(object):
def _parse_value(value):
try:
value = int(value)
- except:
+ except Exception:
if str(value).lower() == 'true':
value = True
elif str(value).lower() == 'false':