summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2005-05-26 12:30:02 +0000
committerPhil Blundell <philb@gnu.org>2005-05-26 12:30:02 +0000
commitb640c969e03c27d8b9da0094c9fddd811ef29f94 (patch)
tree42d25056c0a355924a3e1ef9c6885bf76672f48e
parentac6e1e8af510415aa3804c8c12151d4e114a02c5 (diff)
downloadbitbake-b640c969e03c27d8b9da0094c9fddd811ef29f94.tar.gz
have bb.parse.handle() throw ParseError if the input file is not
understood by any handler, rather than quietly returning None
-rw-r--r--lib/bb/parse/__init__.py2
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: