Skip to contentSkip to conversation

cooker: Add explict handling of BBHandledException for parsing failures

PATCH New Richard Purdie 1 participant 1 message Aug 22, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: Add explict handling of BBHandledException for parsing failures

This removes some unnecessary tracebacks

---

bitbake/lib/bb/cooker.py +5 -0
index c0870b7..b2c9e0b 100644
@@ -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' %