diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-09 14:01:11 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:33 +0100 |
commit | cbc8140c77d927f0b15234e46f4c61d1bb5376ef (patch) | |
tree | ab178d619a606e3650c236ffc5b45cfbc9296d00 | |
parent | cf58d41af881e64cef0c3cba2eaabf0ea71cc97b (diff) | |
download | poky-cbc8140c77d927f0b15234e46f4c61d1bb5376ef.tar.gz |
Exception handling fixups
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 7f46b4abb9..2edeec064e 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -126,7 +126,7 @@ class DataSmart: | |||
126 | name = var[:-l] | 126 | name = var[:-l] |
127 | try: | 127 | try: |
128 | self.renameVar(var, name) | 128 | self.renameVar(var, name) |
129 | except: | 129 | except Exception: |
130 | bb.msg.note(1, bb.msg.domain.Data, "Untracked delVar") | 130 | bb.msg.note(1, bb.msg.domain.Data, "Untracked delVar") |
131 | 131 | ||
132 | # now on to the appends and prepends | 132 | # now on to the appends and prepends |
@@ -203,7 +203,7 @@ class DataSmart: | |||
203 | # pay the cookie monster | 203 | # pay the cookie monster |
204 | try: | 204 | try: |
205 | self._special_values[keyword].add( base ) | 205 | self._special_values[keyword].add( base ) |
206 | except: | 206 | except KeyError: |
207 | self._special_values[keyword] = set() | 207 | self._special_values[keyword] = set() |
208 | self._special_values[keyword].add( base ) | 208 | self._special_values[keyword].add( base ) |
209 | 209 | ||