diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index c179394dc9..96d8218812 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -354,16 +354,11 @@ def better_exec(code, context, text = None, realfile = "<code>"): | |||
354 | code = better_compile(code, realfile, realfile) | 354 | code = better_compile(code, realfile, realfile) |
355 | try: | 355 | try: |
356 | exec(code, get_context(), context) | 356 | exec(code, get_context(), context) |
357 | except bb.BBHandledException: | 357 | except (bb.BBHandledException, bb.parse.SkipRecipe, bb.build.FuncFailed, bb.data_smart.ExpansionError): |
358 | # Error already shown so passthrough | 358 | # Error already shown so passthrough, no need for traceback |
359 | raise | ||
360 | except bb.data_smart.ExpansionError: | ||
361 | raise | 359 | raise |
362 | except Exception as e: | 360 | except Exception as e: |
363 | (t, value, tb) = sys.exc_info() | 361 | (t, value, tb) = sys.exc_info() |
364 | |||
365 | if t in [bb.parse.SkipRecipe, bb.build.FuncFailed]: | ||
366 | raise | ||
367 | try: | 362 | try: |
368 | _print_exception(t, value, tb, realfile, text, context) | 363 | _print_exception(t, value, tb, realfile, text, context) |
369 | except Exception as e: | 364 | except Exception as e: |