diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-02 12:05:51 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-02 12:05:51 -0700 |
commit | 44c325306e55336b7b416fd88b39874012a3f603 (patch) | |
tree | c3f3f863c93e21ce50ca5c4ccfcf94879a2e882f /bin/bitbake | |
parent | 2be5169a01e57bcfcb1f75cbd6bac3bf0f230edd (diff) | |
download | bitbake-44c325306e55336b7b416fd88b39874012a3f603.tar.gz |
Don't show a traceback for a python version error
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-x | bin/bitbake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/bitbake b/bin/bitbake index 08c2c59ee..71e6385b1 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -30,7 +30,10 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), import optparse import warnings from traceback import format_exception -import bb +try: + import bb +except RuntimeError, exc: + sys.exit(str(exc)) from bb import event import bb.msg from bb import cooker |