changeset 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 cd3a00455b87
children 9ae9390192da
files piecrust/baking/worker.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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