diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-09-10 11:33:48 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-01-04 10:26:42 -0700 |
commit | 47aa508e8b4321588c1331cf9a209127cb3535e8 (patch) | |
tree | 09803d537c90c5525594f4671d36566c7087f7a6 | |
parent | f5c086fd1a094d9fb9e99783d4190f26c9129157 (diff) | |
download | bitbake-47aa508e8b4321588c1331cf9a209127cb3535e8.tar.gz |
Don't show tracebacks for SystemExit or KeyboardInterrupt
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r-- | lib/bb/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py index 477c48823..5db138811 100644 --- a/lib/bb/utils.py +++ b/lib/bb/utils.py @@ -332,7 +332,7 @@ def better_exec(code, context, text, realfile): import bb,sys try: exec code in _context, context - except: + except Exception: (t,value,tb) = sys.exc_info() if t in [bb.parse.SkipPackage, bb.build.FuncFailed]: @@ -350,7 +350,6 @@ def better_exec(code, context, text, realfile): line = traceback.tb_lineno(tb) _print_trace( text.split('\n'), line ) - raise def simple_exec(code, context): |