diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-12-02 12:05:51 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:46 +0000 |
commit | 7481c11e34d177ef54b537ca477df88ee40e5602 (patch) | |
tree | f55b3ed24595a87f16a712cec1bbf40db8da27de /bitbake/bin | |
parent | c4e07bc0338a3c51cc811c7c837daf9b93772e5f (diff) | |
download | openembedded-core-7481c11e34d177ef54b537ca477df88ee40e5602.tar.gz openembedded-core-7481c11e34d177ef54b537ca477df88ee40e5602.tar.bz2 openembedded-core-7481c11e34d177ef54b537ca477df88ee40e5602.zip |
Don't show a traceback for a python version error
(Bitbake rev: 44c325306e55336b7b416fd88b39874012a3f603)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 5338868425..8212130683 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/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 |