diff --git a/src/registry.py b/src/registry.py index ce1b59983..b7ceb7d25 100644 --- a/src/registry.py +++ b/src/registry.py @@ -226,7 +226,8 @@ class Group(object): def __getattr__(self, attr): if attr.startswith('_'): - object.__getattr__(self, attr) + raise AttributeError('%s has no attribute %s' % + (self.__class__.__name__, attr)) elif attr in self._children: return self._children[attr] elif self._supplyDefault: