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]
|
## [Unreleased]
|
||||||
|
### Added
|
||||||
|
- Tolerate config files without outputs
|
||||||
|
|
||||||
## [0.2.4] - 2020-05-19
|
## [0.2.4] - 2020-05-19
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
||||||
|
|
@ -574,9 +574,11 @@ class CfgYamlReader(CfgReader):
|
||||||
if 'preflight' in data:
|
if 'preflight' in data:
|
||||||
self._parse_preflight(data['preflight'], cfg)
|
self._parse_preflight(data['preflight'], cfg)
|
||||||
|
|
||||||
for o in data['outputs']:
|
try:
|
||||||
|
for o in data['outputs']:
|
||||||
op_cfg = self._parse_output(o)
|
op_cfg = self._parse_output(o)
|
||||||
cfg.add_output(op_cfg)
|
cfg.add_output(op_cfg)
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
return cfg
|
return cfg
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue