diff --git a/Demo/metaclasses/Meta.py b/Demo/metaclasses/Meta.py index 771205cf3d0..39cbef6266f 100644 --- a/Demo/metaclasses/Meta.py +++ b/Demo/metaclasses/Meta.py @@ -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: