mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-05 02:29:22 +01:00
Fix fallback of Group.__getattr__ on protected attributes.
This commit is contained in:
parent
cac3de71b1
commit
7e1a1a23a9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user