From: Chris Larson Date: Fri, 9 Apr 2010 21:01:11 +0000 (-0700) Subject: Exception handling fixups X-Git-Tag: 2011-1~5529 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=cbc8140c77d927f0b15234e46f4c61d1bb5376ef;p=openembedded-core.git Exception handling fixups Signed-off-by: Richard Purdie --- 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: 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 )