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>
This commit is contained in:
parent
a4b195f180
commit
0533a8465b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue