diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 1b3bb84018..19173ae7ba 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1691,8 +1691,13 @@ class CookerParser(object): | |||
1691 | except Exception as exc: | 1691 | except Exception as exc: |
1692 | self.error += 1 | 1692 | self.error += 1 |
1693 | etype, value, tb = sys.exc_info() | 1693 | etype, value, tb = sys.exc_info() |
1694 | logger.error('Unable to parse %s', value.recipe, | 1694 | if hasattr(value, "recipe"): |
1695 | exc_info=(etype, value, exc.traceback)) | 1695 | logger.error('Unable to parse %s', value.recipe, |
1696 | exc_info=(etype, value, exc.traceback)) | ||
1697 | else: | ||
1698 | # Most likely, an exception occurred during raising an exception | ||
1699 | import traceback | ||
1700 | logger.error('Exception during parse: %s' % traceback.format_exc()) | ||
1696 | self.shutdown(clean=False) | 1701 | self.shutdown(clean=False) |
1697 | return False | 1702 | return False |
1698 | 1703 | ||