diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-09-09 17:57:09 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:34 +0000 |
commit | 0533a8465b4392c44f86a1b38f348a015f7f5c4c (patch) | |
tree | e80b94436079974ee9821744fd4a7f9c0dd24935 /bitbake | |
parent | a4b195f18009d131cb8d4c67beea4568c17c68c9 (diff) | |
download | poky-0533a8465b4392c44f86a1b38f348a015f7f5c4c.tar.gz |
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>
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 |