From: Alec Warner Date: Fri, 12 Jan 2007 03:51:53 +0000 (-0000) Subject: Fix broad except statement, should only be KeyError X-Git-Tag: v2.1.2~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=392dcf713d51bd9678c2e726d1b1ed58f9f1d583;p=portage.git Fix broad except statement, should only be KeyError svn path=/main/trunk/; revision=5583 --- diff --git a/pym/eclass_cache.py b/pym/eclass_cache.py index b0f82fd02..91b98fec5 100644 --- a/pym/eclass_cache.py +++ b/pym/eclass_cache.py @@ -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