diff options
author | 2017-10-27 15:45:20 +0800 | |
---|---|---|
committer | 2017-10-27 15:45:20 +0800 | |
commit | 47bb8fa27b0636f77062c1c1d3ba338e31c14b5b (patch) | |
tree | a3fd2e4e7c29ff138a8c0aa7ffbd06aba6ce3af3 /utils/test/testapi/opnfv_testapi/common/config.py | |
parent | 70dd6da73b294c7d395354bc21aa1cd4be4bc966 (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 'utils/test/testapi/opnfv_testapi/common/config.py')
-rw-r--r-- | utils/test/testapi/opnfv_testapi/common/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/test/testapi/opnfv_testapi/common/config.py b/utils/test/testapi/opnfv_testapi/common/config.py index 140e49283..f888b07be 100644 --- a/utils/test/testapi/opnfv_testapi/common/config.py +++ b/utils/test/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': |