From 0533a8465b4392c44f86a1b38f348a015f7f5c4c 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 (Bitbake rev: 29634acd262b06fd14f6ef1e134346f274cf448f) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/bin/bitbake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 470e9dcc43..e6ce8d9438 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 -- cgit v1.2.3-54-g00ecf