fixed issue 1109, thanks Niphlod

This commit is contained in:
mdipierro
2012-10-20 10:11:08 -05:00
parent 5d439bdc30
commit 28084cf99a
2 changed files with 5 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.1.1 (2012-10-20 10:08:54) dev
Version 2.1.1 (2012-10-20 10:11:05) dev

View File

@@ -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)