Tolerate config files without outputs
This commit is contained in:
parent
f7990ed112
commit
b053017284
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue