Permalink
Browse files

Unified constructor for template errors between 2.x and 3.x

  • Loading branch information...
1 parent ff0b5f5 commit daa36a6f320d186e425a0a16e6a353d523e53396 @mitsuhiko mitsuhiko committed May 20, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 jinja2/exceptions.py
@@ -28,6 +28,9 @@ def message(self):
return message.decode('utf-8', 'replace')
else:
+ def __init__(self, message=None):
+ Exception.__init__(self, message)
+
@property
def message(self):
if self.args:

0 comments on commit daa36a6

Please sign in to comment.