Merge "Clean up flake8 ignore list"

This commit is contained in:
Jenkins
2016-01-18 13:42:00 +00:00
committed by Gerrit Code Review
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(