Remove werkzeug exception handling

werkzeug is not used since after inspector switched to
oslo service, this patch removes it.

Change-Id: I85a28395bcfe7c456eec2b35dd2d225c6e9cfc24
This commit is contained in:
Kaifeng Wang 2019-06-26 11:49:14 +08:00
parent 40450dc4b5
commit d96d99c1b7
1 changed files with 0 additions and 3 deletions

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')