Fix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.
This commit is contained in:
parent
f7698af1c1
commit
75ee3de301
@ -77,7 +77,7 @@ def render_http_exception(request, exc, description):
|
||||
elif stock_desc and exc.code == 404:
|
||||
return render_404(request)
|
||||
|
||||
return render_error(request, title=exc.args[0],
|
||||
return render_error(request, title='{0} {1}'.format(exc.code, exc.name),
|
||||
err_msg=description,
|
||||
status=exc.code)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user