aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2018-03-15 13:59:51 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-19 23:05:01 +0000
commit7780482772d005c77825dc3e99e63f00911156bf (patch)
tree35f7777bb9242fb79310d87508fd65aad11326d4
parente176ab07d1afbb5d7e80d39d49b0f68738509c18 (diff)
downloadopenembedded-core-contrib-7780482772d005c77825dc3e99e63f00911156bf.tar.gz
checklayer: remove reference to undefined class
LayerError doesn't exist and will lead to an error when this failure code path is hit. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--scripts/lib/checklayer/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
index 63952616ba..288c457822 100644
--- a/scripts/lib/checklayer/__init__.py
+++ b/scripts/lib/checklayer/__init__.py
@@ -42,8 +42,8 @@ def _get_layer_collections(layer_path, lconf=None, data=None):
ldata.setVar('LAYERDIR', layer_path)
try:
ldata = bb.parse.handle(lconf, ldata, include=True)
- except BaseException as exc:
- raise LayerError(exc)
+ except:
+ raise RuntimeError("Parsing of layer.conf from layer: %s failed" % layer_path)
ldata.expandVarref('LAYERDIR')
collections = (ldata.getVar('BBFILE_COLLECTIONS') or '').split()