Skip to content

Commit

Permalink
Now fixed in werkzeug (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaclarke committed Sep 9, 2021
1 parent 06ceb3b commit a71517c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions conbench/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ def _init_api_docs(application):

def _json_http_errors(e):
import flask as f
from werkzeug.wrappers.response import Response as WSGIResponse

# TODO: revert back to response = e.get_response() once this is fixed
# https://github.com/pallets/werkzeug/issues/2115
response = WSGIResponse("body omitted", e.code, e.get_headers(None, None))
response = e.get_response()
data = {"code": e.code, "name": e.name}
if e.code == 400:
data["description"] = e.description
Expand Down

0 comments on commit a71517c

Please sign in to comment.