From 7481c11e34d177ef54b537ca477df88ee40e5602 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 2 Dec 2010 12:05:51 -0700 Subject: Don't show a traceback for a python version error (Bitbake rev: 44c325306e55336b7b416fd88b39874012a3f603) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/bin/bitbake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 533886842..821213068 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 -- cgit v1.2.3