diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-29 16:55:31 -0500 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-12-31 17:36:37 -0500 |
commit | 020749b1364fc8b6aee51b30fc5e4bd95bffae89 (patch) | |
tree | 62e732d565da2dffee9d9484c87171ce5a692b1c /buildstream/_yaml.py | |
parent | 28f56e7295874d707ea2cc5f378d772e0e37149e (diff) | |
download | buildstream-020749b1364fc8b6aee51b30fc5e4bd95bffae89.tar.gz |
_yaml.py: Play friendly with nodes missing provenance info
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r-- | buildstream/_yaml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py index 8b91e0a92..777edd958 100644 --- a/buildstream/_yaml.py +++ b/buildstream/_yaml.py @@ -246,7 +246,7 @@ def node_decorate_list(filename, target, source, toplevel): def node_get_provenance(node, key=None, indices=[]): provenance = node.get(PROVENANCE_KEY) - if key: + if provenance and key: provenance = provenance.members.get(key) for index in indices: provenance = provenance.elements[index] |