Geoffrey Gerrietts discovered that a KeyError was caught that probably

should have been a NameError.  I'm checking in a change that catches
both, just to be sure -- I can't be bothered trying to understand this
code any more. :-)
This commit is contained in:
Guido van Rossum 2001-01-15 16:53:58 +00:00
parent 97d3b93c2f
commit e13be40b88

View File

@ -30,7 +30,7 @@ class MetaHelper:
except AttributeError:
try:
ga = self.__formalclass__.__getattr__('__usergetattr__')
except KeyError:
except (KeyError, AttributeError):
raise AttributeError, name
return ga(self, name)
if type(raw) != types.FunctionType: