[bitbake-devel] cooker: Add explict handling of BBHandledException for parsing failures

Submitted by Richard Purdie on Aug. 22, 2012, 9:40 p.m.

Details

Message ID 1345671614.3907.151.camel@ted
State New
Headers show

Commit Message

Richard Purdie Aug. 22, 2012, 9:40 p.m.
This removes some unnecessary tracebacks

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index c0870b7..b2c9e0b 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -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' %