Mercurial > piecrust2
comparison piecrust/baking/baker.py @ 1044:7b64eb5bbc81
bake: Don't ignore errors reported on things that are not yet in the records.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 23 Jan 2018 08:54:02 -0800 |
parents | 506a5cb1e942 |
children | e0796761cdcc |
comparison
equal
deleted
inserted
replaced
1043:54eb8ad9e809 | 1044:7b64eb5bbc81 |
---|---|
388 userdata.records.success = False | 388 userdata.records.success = False |
389 | 389 |
390 # Add those errors to the record, if possible. | 390 # Add those errors to the record, if possible. |
391 record_entry_spec = job.get('record_entry_spec', item_spec) | 391 record_entry_spec = job.get('record_entry_spec', item_spec) |
392 e = record.getEntry(record_entry_spec) | 392 e = record.getEntry(record_entry_spec) |
393 if e: | 393 if not e: |
394 e.errors.append(exc_data['value']) | 394 e = pipeline.createRecordEntry(item_spec) |
395 self._logWorkerException(item_spec, exc_data) | 395 record.addEntry(e) |
396 e.errors.append(exc_data['value']) | |
397 self._logWorkerException(item_spec, exc_data) | |
396 | 398 |
397 # Log debug stuff. | 399 # Log debug stuff. |
398 if self.app.debug: | 400 if self.app.debug: |
399 logger.error(exc_data['traceback']) | 401 logger.error(exc_data['traceback']) |
400 | 402 |