Mercurial > piecrust2
comparison piecrust/baking/worker.py @ 813:c3cb2f9df882
bake: Don?t swallow generic errors during baking
| author | Ben Artin <ben@artins.org> |
|---|---|
| date | Mon, 02 Jan 2017 16:30:57 -0500 |
| parents | 234d0c7c02cf |
| children | 4850f8c21b6e 92a98c84a925 |
comparison
equal
deleted
inserted
replaced
| 812:82509bce94ca | 813:c3cb2f9df882 |
|---|---|
| 229 try: | 229 try: |
| 230 sub_entries = self.page_baker.bake( | 230 sub_entries = self.page_baker.bake( |
| 231 qp, previous_entry, dirty_source_names, gen_name) | 231 qp, previous_entry, dirty_source_names, gen_name) |
| 232 result['sub_entries'] = sub_entries | 232 result['sub_entries'] = sub_entries |
| 233 | 233 |
| 234 except BakingError as ex: | 234 except Exception as ex: |
| 235 logger.debug("Got baking error. Sending it to master.") | 235 logger.debug("Got baking error. Sending it to master.") |
| 236 result['errors'] = _get_errors(ex) | 236 result['errors'] = _get_errors(ex) |
| 237 if self.ctx.app.debug: | 237 if self.ctx.app.debug: |
| 238 logger.exception(ex) | 238 logger.exception(ex) |
| 239 | 239 |
