mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Added an __call__ on Groups so a better error message is raised.
This commit is contained in:
parent
282846fd59
commit
c515e925b8
@ -132,6 +132,9 @@ class Group(object):
|
||||
self.setValue(*args)
|
||||
self.X = X
|
||||
|
||||
def __call__(self):
|
||||
raise ValueError, 'Groups have no value.'
|
||||
|
||||
def __nonExistentEntry(self, attr):
|
||||
s = '%s is not a valid entry in %s' % (attr, self.name)
|
||||
raise NonExistentRegistryEntry, s
|
||||
|
Loading…
Reference in New Issue
Block a user