summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake6
1 files changed, 5 insertions, 1 deletions
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):
58 58
59 59
60def print_exception(*exc_info): 60def print_exception(*exc_info):
61 logger.error("Uncaught exception: ", exc_info=exc_info) 61 if not isinstance(exc_info[0], SystemExit):
62 if isinstance(exc_info[0], KeyboardInterrupt):
63 logger.error("User aborted.")
64 else:
65 logger.error("Uncaught exception: ", exc_info=exc_info)
62 sys.exit(1) 66 sys.exit(1)
63 67
64sys.excepthook = print_exception 68sys.excepthook = print_exception