Tolerate config files without outputs

This commit is contained in:
Salvador E. Tropea 2020-05-20 10:36:28 -03:00
parent f7990ed112
commit b053017284
2 changed files with 8 additions and 5 deletions

View File

@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- Tolerate config files without outputs
## [0.2.4] - 2020-05-19
### Changed

View File

@ -574,9 +574,11 @@ class CfgYamlReader(CfgReader):
if 'preflight' in data:
self._parse_preflight(data['preflight'], cfg)
for o in data['outputs']:
op_cfg = self._parse_output(o)
cfg.add_output(op_cfg)
try:
for o in data['outputs']:
op_cfg = self._parse_output(o)
cfg.add_output(op_cfg)
except KeyError:
pass
return cfg