Ignore Tox Error E722 63/46163/2
authorxudan <xudan16@huawei.com>
Tue, 24 Oct 2017 10:43:46 +0000 (06:43 -0400)
committerhongbo tian <hongbo.tianhongbo@huawei.com>
Wed, 25 Oct 2017 03:41:34 +0000 (03:41 +0000)
1. After updating tox from 2.5 to 2.9, pep8 failed.
2. https://build.opnfv.org/ci/job/dovetail-verify-master/1018/console
3. The Error is 'E722 do not use bare except'.
4. It needs to change all 'except:' into 'except Exception:'.
5. This won't affect Dovetail, so just ignore this Error.
6. Dovetail next release will consider to fix this error.

JIRA: DOVETAIL-537

Change-Id: Ic3c7be4667685fc94025a47c3b17d07a087565da
Signed-off-by: xudan <xudan16@huawei.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index cabb805..5237e95 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -27,5 +27,5 @@ commands = python setup.py testr --coverage \
 
 [flake8]
 show-source = True
-ignore = E123,E125,H803
+ignore = E123,E125,H803,E722
 exclude = .tox,dist,docs,*egg,build,.venv,.git