# HG changeset patch # User Ludovic Chabant # Date 1435466892 25200 # Node ID 5ceb86818dc5dc06bf13d230c6082617e6188dd4 # Parent 6238dcfc7a78f3cb7a44ff3ed35017d6c7eb9863 bug: Fix a crash when errors occur while processing an asset. diff -r 6238dcfc7a78 -r 5ceb86818dc5 piecrust/processing/worker.py --- a/piecrust/processing/worker.py Sat Jun 27 21:47:48 2015 -0700 +++ b/piecrust/processing/worker.py Sat Jun 27 21:48:12 2015 -0700 @@ -153,7 +153,7 @@ tree_root = builder.build(rel_path) result.flags |= FLAG_PREPARED except ProcessingTreeError as ex: - result.errors += _get_errors(ex) + result.errors = _get_errors(ex) return result # Prepare and run the tree. @@ -177,7 +177,7 @@ if isinstance(ex, ProcessorError): ex = ex.__cause__ # Need to strip out colored errors from external processes. - result.errors += _get_errors(ex, strip_colors=True) + result.errors = _get_errors(ex, strip_colors=True) return result