Fix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.

This commit back-cherry-picked from current master for the 0.4.1 fix release.
This commit is contained in:
Christopher Allan Webber 2013-06-22 12:25:31 -05:00
parent cd1fda4d94
commit 20e4e6c140

View File

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