aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-04 17:32:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-05 14:06:45 +0000
commit9241eb10847634e34c5ff8767ed8c114f66ff6cf (patch)
treefd47698d3e1218d15f2af75abe8c1cf1d0b88902 /lib
parenta4bb753488d322e0e31c31d6377ba780f2f824c4 (diff)
downloadbitbake-9241eb10847634e34c5ff8767ed8c114f66ff6cf.tar.gz
cooker: Drop useless parsing exception
The SyntaxError exception simply shows the recipe that failed to parse which is pretty useless without the actual exception. We could make it print more info, however we can just use one of the more generic handlers instead and remove this one. For a python indentation error, this leads to a much more readable error message. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/cooker.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 4df88818f..5ceb198c0 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -2125,11 +2125,6 @@ class CookerParser(object):
logger.error('ExpansionError during parsing %s: %s', value.recipe, str(exc))
self.shutdown(clean=False)
return False
- except SyntaxError as exc:
- self.error += 1
- logger.error('Unable to parse %s', exc.recipe)
- self.shutdown(clean=False)
- return False
except Exception as exc:
self.error += 1
etype, value, tb = sys.exc_info()