]> code.ossystems Code Review - openembedded-core.git/commitdiff
Don't show tracebacks for SystemExit or KeyboardInterrupt
authorChris Larson <chris_larson@mentor.com>
Fri, 10 Sep 2010 18:33:48 +0000 (11:33 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:35 +0000 (14:46 +0000)
(Bitbake rev: d71984b3934c3dd9791c3bc00f332b79a1985a05)

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

index 47fef8c1a91df5762fa8105514becc39740330a9..f5336dda6022c8fd5bef086cbb0521bf51321ad2 100644 (file)
@@ -348,7 +348,7 @@ def better_exec(code, context, text, realfile = "<code>"):
         code = better_compile(code, realfile, realfile)
     try:
         exec(code, _context, context)
-    except:
+    except Exception:
         (t, value, tb) = sys.exc_info()
 
         if t in [bb.parse.SkipPackage, bb.build.FuncFailed]: