Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent ff0b5f5 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:jinja2/exceptions.py+3 added
26 unmodified lines
27 if message is not None:28 return message.decode('utf-8', 'replace')2930 else:31 def __init__(self, message=None):32 Exception.__init__(self, message)3334 @property35 def message(self):36 if self.args:37 message = self.args[0]
107 unmodified lines