cooker: Add explict handling of BBHandledException for parsing failures
PATCH 1/1 cooker: Add explict handling of BBHandledException for parsing failures
This removes some unnecessary tracebacks
Signed-off-by Richard Purdie <[email protected]>
---
bitbake/lib/bb/cooker.py +5 -0
@@ -1661,6 +1661,11 @@ class CookerParser(object): except StopIteration: self.shutdown() return False + except bb.BBHandledException as exc: + self.error += 1 + logger.error('Failed to parse recipe: %s' % exc.recipe) + self.shutdown(clean=False) + return False except ParsingFailure as exc: self.error += 1 logger.error('Unable to parse %s: %s' %