Clean up flake8 ignore list
clean up ignore list and fix errors. Change-Id: I3f44def50fbf44fa3cf5c49cc15a98947084c236
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user