diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-04-29 17:50:38 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.com> | 2019-05-01 07:30:02 +0000 |
commit | ae1a273e57a23943a8e202cd40e20f65b8a0f11c (patch) | |
tree | 16d11b03cda3f21f759da068ede53aab0d8f0e24 | |
parent | 377f20fe5f2a20d8d432e9a5a09e666cdba5afb3 (diff) | |
download | buildstream-ae1a273e57a23943a8e202cd40e20f65b8a0f11c.tar.gz |
_yaml.py: remove duplicated check
-rw-r--r-- | buildstream/_yaml.py | 5 |
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 |