Mercurial > piecrust2
diff piecrust/templating/jinjaengine.py @ 5:474c9882decf
Upgrade to Python 3.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 11 Aug 2014 22:36:47 -0700 |
parents | f485ba500df3 |
children | 343d08ef5668 |
line wrap: on
line diff
--- a/piecrust/templating/jinjaengine.py Mon Aug 11 22:36:36 2014 -0700 +++ b/piecrust/templating/jinjaengine.py Mon Aug 11 22:36:47 2014 -0700 @@ -36,7 +36,7 @@ tse.filename = filename import sys _, __, traceback = sys.exc_info() - raise tse, None, traceback + raise tse.with_traceback(traceback) def renderFile(self, paths, data): self._ensureLoaded()