diff options
author | Phil Blundell <philb@gnu.org> | 2005-05-26 12:30:02 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2005-05-26 12:30:02 +0000 |
commit | b640c969e03c27d8b9da0094c9fddd811ef29f94 (patch) | |
tree | 42d25056c0a355924a3e1ef9c6885bf76672f48e /lib/bb/parse/__init__.py | |
parent | ac6e1e8af510415aa3804c8c12151d4e114a02c5 (diff) | |
download | bitbake-b640c969e03c27d8b9da0094c9fddd811ef29f94.tar.gz |
have bb.parse.handle() throw ParseError if the input file is not
understood by any handler, rather than quietly returning None
Diffstat (limited to 'lib/bb/parse/__init__.py')
-rw-r--r-- | lib/bb/parse/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/parse/__init__.py b/lib/bb/parse/__init__.py index a61630478..8877b6f40 100644 --- a/lib/bb/parse/__init__.py +++ b/lib/bb/parse/__init__.py @@ -68,7 +68,7 @@ def handle(fn, data, include = 0): for h in handlers: if h['supports'](fn, data): return h['handle'](fn, data, include) - return None + raise ParseError("%s is not a BitBake file" % fn) def init(fn, data): for h in handlers: |