]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Added missing method for template errors
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 20 May 2013 01:21:17 +0000 (02:21 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Mon, 20 May 2013 01:21:17 +0000 (02:21 +0100)
jinja2/exceptions.py

index 8d744c62d1dae01b870462c5a2b34b7ef731dd33..c9df6dc7c28a11aa4a9ec8c18eacaf32affeca31 100644 (file)
@@ -27,6 +27,8 @@ class TemplateError(Exception):
                 if message is not None:
                     return message.decode('utf-8', 'replace')
 
+        def __unicode__(self):
+            return self.message or u''
     else:
         def __init__(self, message=None):
             Exception.__init__(self, message)