From b47400c38dd6a1a7a92add47bfdb4ae02515dc2e Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 25 Feb 2013 16:16:42 +0000 Subject: Don't stop parsing layer on fatal error in update script "Fatal" errors during parsing a single recipe (such as finding legacy staging) shouldn't stop us from parsing the rest of the layer. To do this we need to catch BaseException instead of Exception as fatal errors end up calling sys.exit. Signed-off-by: Paul Eggleton --- layerindex/update.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'layerindex/update.py') diff --git a/layerindex/update.py b/layerindex/update.py index a8129dd4bc..97f8ccbee8 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -95,7 +95,9 @@ def update_recipe_file(data, path, recipe): recipe.section = envdata.getVar("SECTION", True) recipe.license = envdata.getVar("LICENSE", True) recipe.homepage = envdata.getVar("HOMEPAGE", True) - except Exception as e: + except KeyboardInterrupt: + raise + except BaseException as e: logger.info("Unable to read %s: %s", fn, str(e)) def update_machine_conf_file(path, machine): -- cgit 1.2.3-korg