From: Armin Ronacher Date: Mon, 20 May 2013 01:18:47 +0000 (+0100) Subject: Unified constructor for template errors between 2.x and 3.x X-Git-Tag: 2.7~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daa36a6f320d186e425a0a16e6a353d523e53396;p=thirdparty%2Fjinja.git Unified constructor for template errors between 2.x and 3.x --- diff --git a/jinja2/exceptions.py b/jinja2/exceptions.py index fce01ed7..8d744c62 100644 --- a/jinja2/exceptions.py +++ b/jinja2/exceptions.py @@ -28,6 +28,9 @@ class TemplateError(Exception): return message.decode('utf-8', 'replace') else: + def __init__(self, message=None): + Exception.__init__(self, message) + @property def message(self): if self.args: