summaryrefslogtreecommitdiff
path: root/buildstream/_yaml.py
diff options
context:
space:
mode:
authorTristan Maat <tristan.maat@codethink.co.uk>2017-11-02 17:03:44 +0000
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-30 17:48:56 +0000
commit3f559f2a295fd903f72e553485d781e01a1784e6 (patch)
treee9e48f9a7f6664723f3816265556ac56a457b362 /buildstream/_yaml.py
parent05e94fa0f5342d91233e5aa2dd978cfa42b8a2f9 (diff)
downloadbuildstream-3f559f2a295fd903f72e553485d781e01a1784e6.tar.gz
Issue #142: Ensure we don't append provenances twice
Diffstat (limited to 'buildstream/_yaml.py')
-rw-r--r--buildstream/_yaml.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 6b1464272..376d3dd7e 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -745,9 +745,7 @@ def composite_dict(target, source, path=None):
# Like composite_dict(), but raises an all purpose LoadError for convenience
#
def composite(target, source):
- if not hasattr(source, 'get'):
- raise LoadError(LoadErrorReason.ILLEGAL_COMPOSITE,
- "Only values of type 'dict' can be composed.")
+ assert hasattr(source, 'get')
source_provenance = node_get_provenance(source)
try: