Mercurial > piecrust2
diff piecrust/data/paginationdata.py @ 877:d6d35b2efd04
bake: Rename "pass" to "step" and make the page pipeline use different steps.
That pipeline is now first loading all pages, and then rendering full pages
unless they trigger a sub-render.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Jun 2017 22:16:23 -0700 |
parents | f4608e2e80ce |
children | b447c24bc8d4 |
line wrap: on
line diff
--- a/piecrust/data/paginationdata.py Thu Jun 15 07:33:40 2017 -0700 +++ b/piecrust/data/paginationdata.py Thu Jun 15 22:16:23 2017 -0700 @@ -1,6 +1,7 @@ import time import logging from piecrust.data.pagedata import LazyPageConfigData +from piecrust.sources.base import AbortedSourceUseError logger = logging.getLogger(__name__) @@ -67,6 +68,8 @@ ctx = RenderingContext(page) render_result = render_page_segments(ctx) segs = render_result.segments + except AbortedSourceUseError: + raise except Exception as ex: logger.exception(ex) raise Exception(