From 28084cf99a98b585be59265049ad1ebcd7dd4e52 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 20 Oct 2012 10:11:08 -0500 Subject: [PATCH] fixed issue 1109, thanks Niphlod --- VERSION | 2 +- gluon/compileapp.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index badf3681..51c3ddfc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.1.1 (2012-10-20 10:08:54) dev +Version 2.1.1 (2012-10-20 10:11:05) dev diff --git a/gluon/compileapp.py b/gluon/compileapp.py index 36360d7a..5f145888 100644 --- a/gluon/compileapp.py +++ b/gluon/compileapp.py @@ -453,7 +453,10 @@ def compile_views(folder): path = pjoin(folder, 'views') for file in listdir(path, '^[\w/\-]+(\.\w+)+$'): - data = parse_template(file, path) + try: + data = parse_template(file, path) + except Exception, e: + raise Exception("%s in %s" % (e, file)) filename = ('views/%s.py' % file).replace('/', '_').replace('\\', '_') filename = pjoin(folder, 'compiled', filename) write_file(filename, data)