fix unicode warning when invalid template message given

This commit is contained in:
Damien Elmes 2011-01-13 19:43:38 +09:00
parent 9b7a55d964
commit cdcde2f2d3

View file

@ -115,7 +115,7 @@ class Template(object):
replacement = func(self, tag_name, context)
template = template.replace(tag, replacement)
except:
return "{{invalid template}}"
return u"{{invalid template}}"
return template