From 5e5ae07a9f9aa12c94593f8e26faee69b85e301d Mon Sep 17 00:00:00 2001 From: "Paul R. Tagliamonte" Date: Sun, 7 Apr 2013 12:25:13 -0400 Subject: [PATCH] fixing up the hy site to match the new catch syntax --- site/app.hy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/app.hy b/site/app.hy index 82da14a..77ada57 100644 --- a/site/app.hy +++ b/site/app.hy @@ -28,6 +28,6 @@ (post-route hy2py "/hy2py" [] (try (hy-to-py (get request.form "code")) - (catch LexException e (err "Incomplete Code.")) - (catch HyError e (err "Generic error during processing.")) - (catch Exception e (err "Erm, you broke something.")))) + (catch [e LexException] (err "Incomplete Code.")) + (catch [e HyError] (err "Generic error during processing.")) + (catch [e Exception] (err "Erm, you broke something."))))