summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-09-09 17:57:09 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:34 +0000
commit0533a8465b4392c44f86a1b38f348a015f7f5c4c (patch)
treee80b94436079974ee9821744fd4a7f9c0dd24935
parenta4b195f18009d131cb8d4c67beea4568c17c68c9 (diff)
downloadopenembedded-core-0533a8465b4392c44f86a1b38f348a015f7f5c4c.tar.gz
openembedded-core-0533a8465b4392c44f86a1b38f348a015f7f5c4c.tar.bz2
openembedded-core-0533a8465b4392c44f86a1b38f348a015f7f5c4c.tar.xz
openembedded-core-0533a8465b4392c44f86a1b38f348a015f7f5c4c.zip
Don't show uncaught exception message for KeyboardInterrupt
(Bitbake rev: 29634acd262b06fd14f6ef1e134346f274cf448f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rwxr-xr-xbitbake/bin/bitbake6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index 470e9dcc4..e6ce8d943 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -58,7 +58,11 @@ class BBConfiguration(object):
def print_exception(*exc_info):
- logger.error("Uncaught exception: ", exc_info=exc_info)
+ if not isinstance(exc_info[0], SystemExit):
+ if isinstance(exc_info[0], KeyboardInterrupt):
+ logger.error("User aborted.")
+ else:
+ logger.error("Uncaught exception: ", exc_info=exc_info)
sys.exit(1)
sys.excepthook = print_exception