Fix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 22 Jun 2013 17:25:31 +0000 (12:25 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 10 Jul 2013 18:42:42 +0000 (13:42 -0500)
This commit back-cherry-picked from current master for the 0.4.1 fix release.

mediagoblin/tools/response.py

index aaf31d0b3a665c3509338403ccb9757ee177e54c..0be1f83546ebbadc44535c321034166577972f59 100644 (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)