Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e13be40

Browse files
committed
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. :-)
1 parent 97d3b93 commit e13be40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Demo/metaclasses/Meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __getattr__(self, name):
3030
except AttributeError:
3131
try:
3232
ga = self.__formalclass__.__getattr__('__usergetattr__')
33-
except KeyError:
33+
except (KeyError, AttributeError):
3434
raise AttributeError, name
3535
return ga(self, name)
3636
if type(raw) != types.FunctionType:

0 commit comments

Comments
 (0)