Don't show tracebacks for SystemExit or KeyboardInterrupt

(Bitbake rev: d71984b3934c3dd9791c3bc00f332b79a1985a05)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson
2010-09-10 11:33:48 -07:00
committed by Richard Purdie
parent 7afe34e2c2
commit bfe4bec8ad

View 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]: