Fix broad except statement, should only be KeyError
authorAlec Warner <antarus@gentoo.org>
Fri, 12 Jan 2007 03:51:53 +0000 (03:51 -0000)
committerAlec Warner <antarus@gentoo.org>
Fri, 12 Jan 2007 03:51:53 +0000 (03:51 -0000)
svn path=/main/trunk/; revision=5583

pym/eclass_cache.py

index b0f82fd02661cd56c007d3ad2edd40f38bb3c202..91b98fec5902ff3df18f1754682d97b78b78017f 100644 (file)
@@ -72,7 +72,7 @@ class cache:
                for x in inherits:
                        try:
                                ec_dict[x] = self.eclasses[x]
-                       except:
+                       except KeyError:
                                print "ec=",ec_dict
                                print "inherits=",inherits
                                raise