Mercurial > piecrust2
diff piecrust/baking/baker.py @ 11:617191dec18e
Fixes for Windows, make `findPagePath` return a ref path.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 18 Aug 2014 16:47:44 -0700 |
parents | 343d08ef5668 |
children | 923699e816d0 |
line wrap: on
line diff
--- a/piecrust/baking/baker.py Sun Aug 17 21:18:48 2014 -0700 +++ b/piecrust/baking/baker.py Mon Aug 18 16:47:44 2014 -0700 @@ -74,7 +74,7 @@ else: bake_path.append(decoded_uri + '.html') - return os.path.join(*bake_path) + return os.path.normpath(os.path.join(*bake_path)) def bake(self, factory, route, taxonomy_name=None, taxonomy_term=None): page = factory.buildPage() @@ -155,9 +155,8 @@ ctx, rp = self._bakeSingle(page, sub_uri, cur_sub, out_path, pagination_filter, custom_data) except Exception as ex: - logger.exception("Error baking page '%s' for URI '%s': %s" % - (page.ref_spec, uri, ex)) - raise + raise Exception("Error baking page '%s' for URI '%s'." % + (page.ref_spec, uri)) from ex cur_record_entry.out_uris.append(sub_uri) cur_record_entry.out_paths.append(out_path)