Group may not have any component
This commit is contained in:
+7
-1
@@ -65,4 +65,10 @@ class GroupDB(lazydb.LazyDB):
|
|||||||
return group
|
return group
|
||||||
|
|
||||||
def get_group_components(self, name, repo=None):
|
def get_group_components(self, name, repo=None):
|
||||||
return self.gcdb.get_item(name, repo)
|
if not self.has_group(name, repo):
|
||||||
|
raise Exception(_('Group %s not found') % name)
|
||||||
|
|
||||||
|
if self.gcdb.has_item(name):
|
||||||
|
return self.gcdb.get_item(name, repo)
|
||||||
|
|
||||||
|
return []
|
||||||
|
|||||||
Reference in New Issue
Block a user