Commit 0bd08bcc authored by Guido van Rossum's avatar Guido van Rossum

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. :-)
parent cd8535af
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment