Merge "Remove werkzeug exception handling"

This commit is contained in:
Zuul 2019-07-17 11:58:19 +00:00 committed by Gerrit Code Review
commit 95caa2ec36

View File

@ -18,7 +18,6 @@ import flask
from oslo_utils import strutils
from oslo_utils import uuidutils
import six
import werkzeug
from ironic_inspector import api_tools
from ironic_inspector.common import context
@ -79,8 +78,6 @@ def convert_exceptions(func):
return func(*args, **kwargs)
except utils.Error as exc:
return error_response(exc, exc.http_code)
except werkzeug.exceptions.HTTPException as exc:
return error_response(exc, exc.code or 400)
except Exception as exc:
LOG.exception('Internal server error')
msg = _('Internal server error')