From 392dcf713d51bd9678c2e726d1b1ed58f9f1d583 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Fri, 12 Jan 2007 03:51:53 +0000 Subject: [PATCH] Fix broad except statement, should only be KeyError svn path=/main/trunk/; revision=5583 --- pym/eclass_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2