From 29634acd262b06fd14f6ef1e134346f274cf448f Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 9 Sep 2010 17:57:09 -0700 Subject: Don't show uncaught exception message for KeyboardInterrupt Signed-off-by: Chris Larson --- bin/bitbake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/bitbake b/bin/bitbake index b281c2a30..d87a9223b 100755 --- a/bin/bitbake +++ b/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 -- cgit 1.2.3-korg