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 | |
parent | c4e07bc0338a3c51cc811c7c837daf9b93772e5f (diff) | |
download | poky-7481c11e34d177ef54b537ca477df88ee40e5602.tar.gz |
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>
-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__)), | |||
30 | import optparse | 30 | import optparse |
31 | import warnings | 31 | import warnings |
32 | from traceback import format_exception | 32 | from traceback import format_exception |
33 | import bb | 33 | try: |
34 | import bb | ||
35 | except RuntimeError, exc: | ||
36 | sys.exit(str(exc)) | ||
34 | from bb import event | 37 | from bb import event |
35 | import bb.msg | 38 | import bb.msg |
36 | from bb import cooker | 39 | from bb import cooker |