Clean up flake8 ignore list

clean up ignore list and fix errors.

Change-Id: I3f44def50fbf44fa3cf5c49cc15a98947084c236
This commit is contained in:
ting.wang
2016-01-14 18:42:45 +08:00
parent 9c33f8aaeb
commit 5b57985686
3 changed files with 5 additions and 8 deletions

View File

@@ -69,8 +69,7 @@ class ParsableErrorMiddleware(object):
if (state['status_code'] // 100) not in (2, 3):
req = webob.Request(environ)
if (req.accept.best_match(['application/json', 'application/xml']
) == 'application/xml'
):
) == 'application/xml'):
try:
# simple check xml is valid
body = [et.ElementTree.tostring(