changeset 822:133580265c57

Don?t swallow generic errors during baking
author Ben Artin <ben@artins.org>
date Mon, 02 Jan 2017 16:30:57 -0500
parents 82509bce94ca
children 89a44af17062
files piecrust/baking/worker.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/baking/worker.py	Tue Dec 20 22:20:18 2016 -0800
+++ b/piecrust/baking/worker.py	Mon Jan 02 16:30:57 2017 -0500
@@ -231,7 +231,7 @@
                     qp, previous_entry, dirty_source_names, gen_name)
             result['sub_entries'] = sub_entries
 
-        except BakingError as ex:
+        except Exception as ex:
             logger.debug("Got baking error. Sending it to master.")
             result['errors'] = _get_errors(ex)
             if self.ctx.app.debug: