mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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.setValue(*args)
|
||||||
self.X = X
|
self.X = X
|
||||||
|
|
||||||
|
def __call__(self):
|
||||||
|
raise ValueError, 'Groups have no value.'
|
||||||
|
|
||||||
def __nonExistentEntry(self, attr):
|
def __nonExistentEntry(self, attr):
|
||||||
s = '%s is not a valid entry in %s' % (attr, self.name)
|
s = '%s is not a valid entry in %s' % (attr, self.name)
|
||||||
raise NonExistentRegistryEntry, s
|
raise NonExistentRegistryEntry, s
|
||||||
|
Loading…
Reference in New Issue
Block a user