]> code.ossystems Code Review - openembedded-core.git/commitdiff
Exception handling fixups
authorChris Larson <chris_larson@mentor.com>
Fri, 9 Apr 2010 21:01:11 +0000 (14:01 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jul 2010 14:41:33 +0000 (15:41 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/data_smart.py

index 7f46b4abb929490554041969abb879f4d4f2f119..2edeec064eb19b0e6cc54b9ab4ae67aa9a5e8132 100644 (file)
@@ -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 )