summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2019-05-01 09:19:05 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-05-01 09:19:05 +0000
commit35543cd0087805a263dc40b5da0bd4e7d4f9f636 (patch)
tree16d11b03cda3f21f759da068ede53aab0d8f0e24
parent377f20fe5f2a20d8d432e9a5a09e666cdba5afb3 (diff)
parentae1a273e57a23943a8e202cd40e20f65b8a0f11c (diff)
downloadbuildstream-35543cd0087805a263dc40b5da0bd4e7d4f9f636.tar.gz
Merge branch 'bschubert/remove-duplicated-code' into 'master'
_yaml.py: remove duplicated check See merge request BuildStream/buildstream!1318
-rw-r--r--buildstream/_yaml.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 3d718f9ad..c1297e9dd 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -196,11 +196,6 @@ class Representer:
"Invalid input detected. No handler for {} in state {} at line {} column {}"
.format(event, self.state, event.start_mark.line, event.start_mark.column))
- if handler is None:
- raise YAMLLoadError(
- "Invalid input detected. No handler for {} in state {} at line {} column {}"
- .format(event, self.state, event.start_mark.line, event.start_mark.column))
-
self.state = handler(event) # pylint: disable=not-callable
# Get the output of the YAML parse