diff options
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake | 6 |
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 | ||
60 | def print_exception(*exc_info): | 60 | def 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 | ||
64 | sys.excepthook = print_exception | 68 | sys.excepthook = print_exception |