From 94d266e740348032ddd664a8d234bbc8aa776666 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 24 Jul 2012 23:51:26 -0400 Subject: [PATCH] Get around Mako bug that doesn't support try/else --- pages/settings.mako | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pages/settings.mako b/pages/settings.mako index fa0b94f..7685954 100644 --- a/pages/settings.mako +++ b/pages/settings.mako @@ -54,14 +54,13 @@ ${cookie.key | h} % try: <% lines = dumps(loads(cookie.value), indent=4).splitlines() %> - % except ValueError: - ${cookie.value | h} - % else: % for line in lines:
${line | h}
% endfor + % except ValueError: + ${cookie.value | h} % endtry