filter() needs a None
arg
This commit is contained in:
parent
7287d9d083
commit
69e2511725
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,8 @@ class GitLab(object):
|
|||
category = "%s+%s" % (event, category)
|
||||
category_action = "%s/%s" % (category, event_action)
|
||||
|
||||
return list(filter([event, event_action, category, category_action]))
|
||||
return [event]+list(filter(None,
|
||||
[event_action, category, category_action]))
|
||||
|
||||
def event_categories(self, event):
|
||||
return EVENT_CATEGORIES.get(event, [event])
|
||||
|
|
Loading…
Reference in a new issue