]> code.ossystems Code Review - openembedded-core.git/commitdiff
Don't show uncaught exception message for KeyboardInterrupt
authorChris Larson <chris_larson@mentor.com>
Fri, 10 Sep 2010 00:57:09 +0000 (17:57 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:34 +0000 (14:46 +0000)
(Bitbake rev: 29634acd262b06fd14f6ef1e134346f274cf448f)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/bin/bitbake

index 470e9dcc43ecaa0bb0e4ee61cb1cadddfec4360d..e6ce8d943875bae67b428db2a52723d01ff84f26 100755 (executable)
@@ -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