diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-04-29 17:50:38 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-04-30 11:48:58 +0000 |
commit | 6cc5d1b0e6068203f5124027b946cc2e1fa07c16 (patch) | |
tree | d6b1b74833888e87b2da7772ac5fd7d21d068da6 | |
parent | 0c064be9a7af972946dc8aa1d9daf63d4527cf4e (diff) | |
download | buildstream-bschubert/remove-duplicated-code.tar.gz |
_yaml.py: remove duplicated checkbschubert/remove-duplicated-code
-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 |