forked from openlp/openlp
match list behaviour
This commit is contained in:
parent
3f1e7f1912
commit
88a3ac6216
@ -209,6 +209,8 @@ class CategoryList(object):
|
|||||||
for category in self.categories:
|
for category in self.categories:
|
||||||
if category.name == name:
|
if category.name == name:
|
||||||
self.categories.remove(category)
|
self.categories.remove(category)
|
||||||
|
return
|
||||||
|
raise ValueError('Category "%s" does not exist.' % name)
|
||||||
|
|
||||||
|
|
||||||
class ActionList(object):
|
class ActionList(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user