Mercurial > piecrust2
diff piecrust/baking/worker.py @ 690:f7207f4dab82
bake: Fix a crash when a rendering error occurs.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 21 Mar 2016 19:16:54 -0700 |
parents | 61d606fbc313 |
children | 9ae9390192da |
line wrap: on
line diff
--- a/piecrust/baking/worker.py Mon Mar 14 21:40:26 2016 -0700 +++ b/piecrust/baking/worker.py Mon Mar 21 19:16:54 2016 -0700 @@ -168,7 +168,7 @@ except Exception as ex: logger.debug("Got rendering error. Sending it to master.") result['errors'] = _get_errors(ex) - if self.ctx.debug: + if self.ctx.app.debug: logger.exception(ex) finally: self.app.env.abort_source_use = False