mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class MetaHelper:
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
try:
|
try:
|
||||||
ga = self.__formalclass__.__getattr__('__usergetattr__')
|
ga = self.__formalclass__.__getattr__('__usergetattr__')
|
||||||
except KeyError:
|
except (KeyError, AttributeError):
|
||||||
raise AttributeError, name
|
raise AttributeError, name
|
||||||
return ga(self, name)
|
return ga(self, name)
|
||||||
if type(raw) != types.FunctionType:
|
if type(raw) != types.FunctionType:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue