From 69819ed3f891d6d5030a455c45dda5da01d28c2a Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 15 Sep 2014 00:40:47 -0500 Subject: [PATCH] @catch_errors for api routes. --- app.fcgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.fcgi b/app.fcgi index d78099d..e1f0b53 100755 --- a/app.fcgi +++ b/app.fcgi @@ -88,10 +88,12 @@ def settings(): return render_template("settings.mako", **kwargs) @app.route("/api") +@catch_errors def api(): return render_template("api.mako", help=True) @app.route("/api.json") +@catch_errors def api_json(): if not request.args: return render_template("api.mako", help=True)