# but as you might expect, the mapping functionality is preserved.
+ # A normal attribute error should be raised if an attribute is
+ # requested that doesn't exist.
+ Traceback (most recent call last):
+ AttributeError: 'C' object has no attribute 'missing'
def __getattr__(self, key):
- return super(ItemsAsAttributes, self).__getattr__(key)
+ return getattr(super(ItemsAsAttributes, self), key)
+ except AttributeError as e:
+ e.message = e.message.replace('super',
+ self.__class__.__name__, 1)