From 69e2511725a9a4e4957a3b35774965ec4819994e Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 28 Oct 2019 14:14:46 +0000 Subject: [PATCH] filter() needs a `None` arg --- modules/git_webhooks/gitlab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/git_webhooks/gitlab.py b/modules/git_webhooks/gitlab.py index c20dfdd0..5236111d 100644 --- a/modules/git_webhooks/gitlab.py +++ b/modules/git_webhooks/gitlab.py @@ -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])