comparison piecrust/baking/worker.py @ 996:92a98c84a925

cm: Fix crashes when page assets deployment fails. This can happen for instance if page assets are read-only files.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 12 May 2017 09:26:37 -0700
parents c3cb2f9df882
children 2e5c5d33d62c
comparison
equal deleted inserted replaced
995:601f4a236ee5 996:92a98c84a925
232 result['sub_entries'] = sub_entries 232 result['sub_entries'] = sub_entries
233 233
234 except Exception 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 result['sub_entries'] = []
237 if self.ctx.app.debug: 238 if self.ctx.app.debug:
238 logger.exception(ex) 239 logger.exception(ex)
239 240
240 return result 241 return result
241 242