summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-09 14:01:11 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:33 +0100
commitcbc8140c77d927f0b15234e46f4c61d1bb5376ef (patch)
treeab178d619a606e3650c236ffc5b45cfbc9296d00 /bitbake/lib/bb
parentcf58d41af881e64cef0c3cba2eaabf0ea71cc97b (diff)
downloadopenembedded-core-cbc8140c77d927f0b15234e46f4c61d1bb5376ef.tar.gz
openembedded-core-cbc8140c77d927f0b15234e46f4c61d1bb5376ef.tar.bz2
openembedded-core-cbc8140c77d927f0b15234e46f4c61d1bb5376ef.tar.xz
openembedded-core-cbc8140c77d927f0b15234e46f4c61d1bb5376ef.zip
Exception handling fixups
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/data_smart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index 7f46b4abb..2edeec064 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -126,7 +126,7 @@ class DataSmart:
name = var[:-l]
try:
self.renameVar(var, name)
- except:
+ except Exception:
bb.msg.note(1, bb.msg.domain.Data, "Untracked delVar")
# now on to the appends and prepends
@@ -203,7 +203,7 @@ class DataSmart:
# pay the cookie monster
try:
self._special_values[keyword].add( base )
- except:
+ except KeyError:
self._special_values[keyword] = set()
self._special_values[keyword].add( base )