mirror of https://github.com/python/cpython
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:
parent
97d3b93c2f
commit
e13be40b88
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue